-
Notifications
You must be signed in to change notification settings - Fork 25
48 lines (40 loc) · 1.13 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI
on:
pull_request:
branches: [develop, master]
push:
branches: [develop, master]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip3 install -r requirements-dev.txt
pip3 install -r requirements.txt
- name: Linting
run: |
make lint
- name: Unit Test
run: |
make test
- name: E2E Test
run: |
make test-e2e
- name: SonarCloud Scan
# if: ${{ github.event_name == 'pull_request' }}
# if: ${{ github.event_name == 'push' }}
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: SonarSource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3