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 583d21d commit d2b13dc
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/ci-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ env:
SCCACHE_GHA_ENABLED: "true"
HUGR_BIN_DIR: ${{ github.workspace }}/target/debug
HUGR_BIN: ${{ github.workspace }}/target/debug/hugr
# Pinned version for the uv package manager
UV_VERSION: "0.4.20"
UV_FROZEN: 1

jobs:
# Check if changes were made to the relevant files.
Expand Down Expand Up @@ -54,13 +57,10 @@ jobs:
- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.18"
version: ${{ env.UV_VERSION }}
enable-cache: true
- name: Install Python
run: uv python install ${{ matrix.python-version }}

- name: Setup dependencies. Fail if the lockfile is outdated.
run: uv sync --locked
- name: Setup dependencies.
run: uv sync --python ${{ matrix.python-version }}

- name: Type check with mypy
run: uv run mypy .
Expand Down Expand Up @@ -112,10 +112,8 @@ jobs:
- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.18"
version: ${{ env.UV_VERSION }}
enable-cache: true
- name: Install Python
run: uv python install ${{ matrix.python-version.py }}

- name: Download the hugr binary
uses: actions/download-artifact@v4
Expand All @@ -124,7 +122,7 @@ jobs:
path: ${{env.HUGR_BIN_DIR}}

- name: Setup dependencies
run: uv sync
run: uv sync --python ${{ matrix.python-version.py }}

- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v2
Expand Down Expand Up @@ -164,12 +162,10 @@ jobs:
- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.18"
version: ${{ env.UV_VERSION }}
enable-cache: true
- name: Install Python
run: uv python install 3.13

- name: Setup dependencies
- name: Setup dependencies.
run: uv sync

- name: Generate the updated schema
Expand Down

0 comments on commit d2b13dc

Please sign in to comment.