|
7 | 7 | branches: [ main ] |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - commitlint: |
11 | | - name: Check commit messages |
12 | | - runs-on: ubuntu-latest |
13 | | - steps: |
14 | | - - name: Checkout |
15 | | - uses: actions/checkout@v4 |
16 | | - - name: Run commitlint |
17 | | - uses: wagoid/commitlint-github-action@3d28780bbf0365e29b144e272b2121204d5be5f3 # v6.1.2 |
18 | | - |
19 | | - pre-commit: |
20 | | - name: Run pre-commit hooks |
21 | | - runs-on: ubuntu-latest |
22 | | - steps: |
23 | | - - name: Checkout |
24 | | - uses: actions/checkout@v4 |
25 | | - - name: Setup Python 3.10 |
26 | | - uses: actions/setup-python@v5 |
27 | | - with: |
28 | | - python-version: '3.10' |
29 | | - - name: Run pre-commit |
30 | | - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 |
31 | | - |
32 | 10 | test: |
33 | 11 | name: Python ${{ matrix.python_version }} |
34 | 12 | runs-on: ubuntu-latest |
35 | | - env: |
36 | | - TOX_POSARGS: -- --cov=. --cov-report=xml |
37 | 13 | strategy: |
38 | 14 | matrix: |
39 | | - python_version: ['3.10', '3.11', '3.12', '3.13', '3.14'] |
| 15 | + python_version: ["3.10", "3.11", "3.12", "3.13", "3.14"] |
40 | 16 |
|
41 | 17 | steps: |
42 | | - - uses: actions/checkout@v4 |
| 18 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
43 | 19 |
|
44 | 20 | - name: Set up Python ${{ matrix.python_version }} |
45 | | - uses: actions/setup-python@v5 |
| 21 | + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 |
46 | 22 | with: |
47 | 23 | python-version: ${{ matrix.python_version }} |
48 | | - cache: 'pip' |
49 | | - cache-dependency-path: 'requirements-test.txt' |
50 | | - |
51 | | - - name: Upgrade packaging tools |
52 | | - run: python -m pip install --upgrade pip setuptools wheel |
53 | | - |
54 | | - - name: Install dependencies |
55 | | - run: python -m pip install --upgrade codecov tox |
56 | 24 |
|
57 | | - - name: Run tox targets for Python ${{ matrix.python_version }} |
58 | | - run: tox run -f py$(echo ${{ matrix.python_version }} | tr -d .) ${{ env.TOX_POSARGS }} |
| 25 | + - name: Install hatch |
| 26 | + run: python -m pip install hatch |
59 | 27 |
|
60 | | - - name: Upload Coverage to Codecov |
61 | | - if: ${{ matrix.python_version == '3.10' }} |
62 | | - uses: codecov/codecov-action@v3 |
| 28 | + - name: Tests |
| 29 | + run: hatch test -i py=${{ matrix.python_version }} |
0 commit comments