-
Notifications
You must be signed in to change notification settings - Fork 223
33 lines (32 loc) · 990 Bytes
/
tests.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
name: Covasim CI workflow
on: [pull_request]
jobs:
install_and_test:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
max-parallel: 8
matrix:
python-version: ['3.9']
name: Run tests
steps:
- name: Checkout sources
uses: actions/checkout@v2
- uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Covasim
run: pip install -e .
- name: Install tests
working-directory: ./tests
run: pip install -r requirements_test.txt
- name: Run integration tests
working-directory: ./tests
run: pytest -v test_*.py unittests/test_*.py --workers auto --durations=0 --junitxml=test-results.xml
- name: Publish test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
junit_files: tests/test-results.xml