-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (56 loc) · 1.7 KB
/
continuous_integration.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
name: Continuous Integration
on:
push:
pull_request:
types: [labeled, opened, synchronize]
jobs:
lint_check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Lint Check
run: |
chmod +x ./.github/workflow_scripts/lint_check.sh && ./.github/workflow_scripts/lint_check.sh
run_tests:
needs: lint_check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python3 -m pip install -r requirements.txt
- name: Run Dashboard Tests
run: |
chmod +x ./.github/workflow_scripts/test_dashboard.sh && ./.github/workflow_scripts/test_dashboard.sh
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: ./coverage.json
run_coverage_check:
needs: run_tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download code coverage results
uses: actions/download-artifact@v3
with:
name: code-coverage-report
- name: Run Unittests Coverage Check
run: |
chmod +x ./.github/workflow_scripts/test_coverage.sh && ./.github/workflow_scripts/test_coverage.sh