Skip to content

Commit

Permalink
ci: Use uv --frozen instead of --locked
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Oct 23, 2024
1 parent ab4e006 commit 7b6be8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ env:
RUSTC_WRAPPER: "sccache"
# Pinned version for the uv package manager
UV_VERSION: "0.4.20"
UV_FROZEN: 1
# The highest and lowest supported Python versions, used for testing
PYTHON_HIGHEST: "3.12"
PYTHON_LOWEST: "3.10"
Expand Down Expand Up @@ -95,7 +96,7 @@ jobs:
- name: Install Python ${{ env.PYTHON_HIGHEST }}
run: uv python install ${{ env.PYTHON_HIGHEST }}
- name: Setup dependencies
run: uv sync --locked --python ${{ env.PYTHON_HIGHEST }}
run: uv sync --python ${{ env.PYTHON_HIGHEST }}
- name: Type check with mypy
run: uv run mypy .
- name: Check formatting with ruff
Expand Down Expand Up @@ -244,7 +245,7 @@ jobs:
- name: Install Python ${{ env.PYTHON_LOWEST }}
run: uv python install ${{ env.PYTHON_LOWEST }}
- name: Setup dependencies
run: uv sync --locked --python ${{ env.PYTHON_LOWEST }}
run: uv sync --python ${{ env.PYTHON_LOWEST }}
- name: Run python tests with coverage instrumentation
run: uv run pytest --cov=./ --cov-report=xml
- name: Upload coverage output artifact
Expand Down

0 comments on commit 7b6be8d

Please sign in to comment.