| 1 |
name: Pytest |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ "main" ] |
| 6 |
pull_request: |
| 7 |
branches: [ "main" ] |
| 8 |
|
| 9 |
permissions: {} |
| 10 |
|
| 11 |
jobs: |
| 12 |
pytest: |
| 13 |
runs-on: ubuntu-latest |
| 14 |
strategy: |
| 15 |
matrix: |
| 16 |
python-version: ["3.9", "3.10", "3.11", "3.12"] |
| 17 |
steps: |
| 18 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
| 19 |
- name: Set up Python ${{ matrix.python-version }} |
| 20 |
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 |
| 21 |
with: |
| 22 |
python-version: ${{ matrix.python-version }} |
| 23 |
- name: Install dependencies |
| 24 |
run: | |
| 25 |
python -m pip install --upgrade pip |
| 26 |
pip install -e .[test] |
| 27 |
- name: Test with pytest |
| 28 |
run: | |
| 29 |
pytest --cov=cdsetool --cov-report xml |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|