-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (34 loc) · 1016 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
34
35
name: Starsim CI tests
on: [pull_request]
jobs:
install_and_test:
timeout-minutes: 8
strategy:
fail-fast: false
max-parallel: 8
matrix:
os: ['ubuntu-latest']
python-version: ['3.10', '3.12']
runs-on: ${{ matrix.os }}
name: Install and test
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install STIsim
run: pip install -e .
- name: Install tests
working-directory: ./tests
run: pip install -r requirements.txt
- name: Run API tests
working-directory: ./tests
run: pytest test_*.py -n auto --durations=0 --junitxml=test-results.xml # Run actual tests
- name: Upload test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: test_results
path: tests/test-results.xml