Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use uv --frozen instead of --locked #1611

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading