Debian Codegraph @

.github/workflows/pytest.yml

raw symbols SCIP
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 # v6.0.2
19 - name: Set up Python ${{ matrix.python-version }}
20 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
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 # - name: Python Coverage
31 # uses: orgoro/coverage@3f13a558c5af7376496aa4848bf0224aead366ac # v3.2
32 # with:
33 # coverageFile: coverage.xml
34 # token: ${{ secrets.GITHUB_TOKEN }}