Browse Source

👷 Run tests with lower bound uv sync

pull/14846/head
Sebastián Ramírez 5 months ago
parent
commit
2d587ab897
  1. 11
      .github/workflows/test.yml

11
.github/workflows/test.yml

@ -49,31 +49,40 @@ jobs:
matrix: matrix:
os: [ windows-latest, macos-latest ] os: [ windows-latest, macos-latest ]
python-version: [ "3.14" ] python-version: [ "3.14" ]
uv-resolution:
- highest
include: include:
- os: ubuntu-latest - os: ubuntu-latest
python-version: "3.9" python-version: "3.9"
coverage: coverage coverage: coverage
uv-resolution: lowest-direct
- os: macos-latest - os: macos-latest
python-version: "3.10" python-version: "3.10"
coverage: coverage coverage: coverage
uv-resolution: highest
- os: windows-latest - os: windows-latest
python-version: "3.12" python-version: "3.12"
coverage: coverage coverage: coverage
uv-resolution: lowest-direct
- os: ubuntu-latest - os: ubuntu-latest
python-version: "3.13" python-version: "3.13"
coverage: coverage coverage: coverage
uv-resolution: highest
# Ubuntu with 3.13 needs coverage for CodSpeed benchmarks # Ubuntu with 3.13 needs coverage for CodSpeed benchmarks
- os: ubuntu-latest - os: ubuntu-latest
python-version: "3.13" python-version: "3.13"
coverage: coverage coverage: coverage
uv-resolution: highest
codspeed: codspeed codspeed: codspeed
- os: ubuntu-latest - os: ubuntu-latest
python-version: "3.14" python-version: "3.14"
coverage: coverage coverage: coverage
uv-resolution: highest
fail-fast: false fail-fast: false
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
UV_PYTHON: ${{ matrix.python-version }} UV_PYTHON: ${{ matrix.python-version }}
UV_RESOLUTION: ${{ matrix.uv-resolution }}
steps: steps:
- name: Dump GitHub context - name: Dump GitHub context
env: env:
@ -92,7 +101,7 @@ jobs:
pyproject.toml pyproject.toml
uv.lock uv.lock
- name: Install Dependencies - name: Install Dependencies
run: uv sync --locked --no-dev --group tests --extra all run: uv sync --no-dev --group tests --extra all
- run: mkdir coverage - run: mkdir coverage
- name: Test - name: Test
if: matrix.codspeed != 'codspeed' if: matrix.codspeed != 'codspeed'

Loading…
Cancel
Save