| 1 |
name: Run unit tests |
| 2 |
|
| 3 |
|
| 4 |
on: |
| 5 |
push: |
| 6 |
branches: |
| 7 |
- main |
| 8 |
- dev |
| 9 |
pull_request: |
| 10 |
branches: |
| 11 |
- main |
| 12 |
- dev |
| 13 |
workflow_call: |
| 14 |
workflow_dispatch: |
| 15 |
|
| 16 |
|
| 17 |
jobs: |
| 18 |
|
| 19 |
testing: |
| 20 |
runs-on: ubuntu-latest |
| 21 |
continue-on-error: true |
| 22 |
strategy: |
| 23 |
matrix: |
| 24 |
python-version: ["3.10", "3.11", "3.12", "3.13"] |
| 25 |
|
| 26 |
steps: |
| 27 |
- uses: actions/checkout@v4 |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
- name: Set up Python ${{ matrix.python-version }} |
| 33 |
uses: actions/setup-python@v5 |
| 34 |
with: |
| 35 |
python-version: ${{ matrix.python-version }} |
| 36 |
cache: "pip" |
| 37 |
|
| 38 |
|
| 39 |
- name: Install dependencies |
| 40 |
run: | |
| 41 |
python -m pip install --upgrade pip |
| 42 |
python -m pip install . |
| 43 |
python -m pip install pytest |
| 44 |
|
| 45 |
|
| 46 |
- name: Run Pytest |
| 47 |
run: pytest |