-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (35 loc) · 1.02 KB
/
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
34
35
36
name: HPVsim CI tests
on:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
install_and_test:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
max-parallel: 8
matrix:
python-version: [ '3.11' ]
name: Install and test
steps:
- name: Checkout sources
uses: actions/checkout@v2
- uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install HPVsim
run: pip install -e .
- name: Install tests
working-directory: ./tests
run: pip install -r requirements.txt
- name: Run all tests
working-directory: ./tests
run: pytest test_*.py -n auto --durations=0 --junitxml=test-results.xml # Run actual tests
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: './tests/test-results.xml'