Version 2.2 #1056
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |