|
6 | 6 | jobs: |
7 | 7 | test: |
8 | 8 | name: ${{matrix.os}}-${{matrix.python-version}} |
| 9 | + runs-on: ${{ matrix.os }} |
9 | 10 | strategy: |
| 11 | + fail-fast: false |
10 | 12 | matrix: |
11 | | - python-version: ["3.9", "3.10", "3.11", "3.12"] |
| 13 | + python-version: |
| 14 | + - "3.9" |
| 15 | + - "3.10" |
| 16 | + - "3.11" |
| 17 | + - "3.12" |
| 18 | + - "3.13" |
12 | 19 | os: [ubuntu-latest, macos-latest, windows-latest] |
13 | | - runs-on: ${{ matrix.os }} |
14 | 20 | steps: |
15 | | - - name: Checkout repository |
16 | | - uses: actions/checkout@v3 |
17 | | - - name: Set up Python ${{ matrix.python-version }} |
18 | | - uses: actions/setup-python@v4 |
19 | | - with: |
20 | | - python-version: ${{ matrix.python-version }} |
21 | | - - name: Install Poetry |
22 | | - uses: abatilo/actions-poetry@v2.3.0 |
| 21 | + - uses: actions/checkout@v4 |
| 22 | + - uses: extractions/setup-just@v2 |
| 23 | + - uses: astral-sh/setup-uv@v5 |
23 | 24 | with: |
24 | | - poetry-version: "1.8.3" |
25 | | - - name: Install dependencies with Poetry |
26 | | - run: | |
27 | | - poetry config virtualenvs.create false |
28 | | - poetry install --all-extras --with dev |
29 | | - - name: Run tests with coverage |
30 | | - run: | |
31 | | - pytest . --cov=. --cov-report xml -n 4 |
32 | | - - name: Upload coverage to Codecov |
33 | | - uses: codecov/codecov-action@v4.0.1 |
| 25 | + cache-dependency-glob: "**/pyproject.toml" |
| 26 | + - run: uv python install ${{ matrix.python-version }} |
| 27 | + - run: just install |
| 28 | + - run: just test . --cov=. --cov-report xml |
| 29 | + - uses: codecov/codecov-action@v4.0.1 |
34 | 30 | env: |
35 | 31 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
36 | 32 | with: |
|
0 commit comments