@@ -13,56 +13,63 @@ jobs:
1313 pre-commit:
1414 runs-on: ubuntu-latest
1515 steps:
16- - uses: actions/checkout@v4
16+ - uses: actions/checkout@v5
1717
18- - uses: astral-sh/setup-uv@v5
18+ - uses: astral-sh/setup-uv@v7
1919 with:
2020 enable-cache: true
21- version: 0.7.2
22-
21+ version: 0.9.5
2322 - name: Install dependencies
2423 run: uv sync --frozen --all-extras --python 3.10
2524
26- - uses: pre-commit/action@v3.0.0
25+ - uses: pre-commit/action@v3.0.1
2726 with:
2827 extra_args: --all-files --verbose
2928 env:
3029 SKIP: no-commit-to-branch
3130
3231 test:
32+ name: test (${{ matrix.python-version }}, ${{ matrix.dep-resolution.name }}, ${{ matrix.os }})
3333 runs-on: ${{ matrix.os }}
3434 timeout-minutes: 10
3535 continue-on-error: true
3636 strategy:
3737 matrix:
3838 python-version: ["3.10", "3.11", "3.12", "3.13"]
39- dep-resolution: ["lowest-direct", "highest"]
39+ dep-resolution:
40+ - name: lowest-direct
41+ install-flags: "--upgrade --resolution lowest-direct"
42+ - name: highest
43+ install-flags: "--upgrade --resolution highest"
4044 os: [ubuntu-latest, windows-latest]
4145
4246 steps:
43- - uses: actions/checkout@v4
47+ - uses: actions/checkout@v5
4448
4549 - name: Install uv
46- uses: astral-sh/setup-uv@v3
50+ uses: astral-sh/setup-uv@v7
4751 with:
4852 enable-cache: true
49- version: 0.7.2
53+ version: 0.9.5
5054
5155 - name: Install the project
52- run: uv sync --frozen --all-extras --python ${{ matrix.python-version }} --resolution ${{ matrix.dep-resolution }}
56+ run: uv sync ${{ matrix.dep-resolution.install-flags }} --all-extras --python ${{ matrix.python-version }}
5357
54- - name: Run pytest
55- run: uv run --frozen --no-sync pytest
58+ - name: Run pytest with coverage
59+ run: |
60+ uv run --frozen --no-sync coverage run -m pytest
61+ uv run --frozen --no-sync coverage combine
62+ uv run --frozen --no-sync coverage report
5663
5764 readme-snippets:
5865 runs-on: ubuntu-latest
5966 steps:
60- - uses: actions/checkout@v4
67+ - uses: actions/checkout@v5
6168
62- - uses: astral-sh/setup-uv@v5
69+ - uses: astral-sh/setup-uv@v7
6370 with:
6471 enable-cache: true
65- version: 0.7.2
72+ version: 0.9.5
6673
6774 - name: Install dependencies
6875 run: uv sync --frozen --all-extras --python 3.10
0 commit comments