|
7 | 7 | linting:
|
8 | 8 | runs-on: ubuntu-latest
|
9 | 9 | steps:
|
10 |
| - - uses: actions/checkout@v2 |
11 |
| - - name: Install virtualenv from poetry |
12 |
| - uses: 20c/workflows/poetry@v1 |
| 10 | + - uses: actions/checkout@v4 |
| 11 | + - name: Install uv |
| 12 | + uses: astral-sh/setup-uv@v6 |
| 13 | + - name: install project |
| 14 | + run: uv sync --all-extras --dev |
13 | 15 | - name: Run linters
|
14 | 16 | run: |
|
15 |
| - poetry run pre-commit run --all-files |
| 17 | + uv run pre-commit run --all-files |
16 | 18 |
|
17 | 19 | test:
|
18 | 20 | needs: linting
|
19 | 21 | strategy:
|
20 | 22 | fail-fast: false
|
21 | 23 | matrix:
|
22 | 24 | os: [ "ubuntu-latest", "macos-latest" ]
|
23 |
| - python-version: [ "3.8", "3.9", "3.10", "3.11" ] |
| 25 | + python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] |
24 | 26 | runs-on: ${{ matrix.os }}
|
25 | 27 | steps:
|
26 | 28 | - name: Check out repository
|
27 |
| - uses: actions/checkout@v2 |
28 |
| - - name: Install virtualenv from poetry |
29 |
| - uses: 20c/workflows/poetry@v1 |
30 |
| - with: |
31 |
| - python-version: ${{ matrix.python-version }} |
| 29 | + uses: actions/checkout@v4 |
| 30 | + - name: Install uv |
| 31 | + uses: astral-sh/setup-uv@v6 |
| 32 | + - name: Install python |
| 33 | + run: uv python install ${{ matrix.python-version }} |
| 34 | + - name: install tox |
| 35 | + run: uv sync --all-extras --dev |
32 | 36 | - name: Run tests
|
33 |
| - run: poetry run tox |
| 37 | + run: uv run tox |
34 | 38 | - name: Upload coverage
|
35 |
| - uses: codecov/codecov-action@v3 |
| 39 | + uses: codecov/codecov-action@v5 |
36 | 40 | with:
|
37 | 41 | fail_ci_if_error: true
|
| 42 | + token: ${{ secrets.CODECOV_TOKEN }} |
0 commit comments