Debian Codegraph @

.github/workflows/pytest.yml

raw
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19 - name: Set up Python ${{ matrix.python-version }}
20 uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.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 }}