Skip to content
Open
Show file tree
Hide file tree
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
20 changes: 18 additions & 2 deletions .github/actions/setup-uv/action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
name: Set up uv
description: Install the pinned version of uv and cache its package cache

inputs:
enable-cache:
description: Enable cache
required: false
type: boolean
python-version:
description: Python version
required: false
type: string
runs:
using: composite
steps:
- name: Install uv
shell: bash
run: pip install -r .github/uv-requirements.txt

- name: Pin Python version ${{ inputs.python-version }}
if: ${{ inputs.python-version != '' }}
shell: bash
run: uv python pin "$PYTHON_VERSION"
env:
PYTHON_VERSION: ${{ inputs.python-version }}

- name: Cache uv packages
if: ${{ inputs.enable-cache == 'true' }}
uses: actions/cache@v4
with:
path: ~/.cache/uv
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-
uv-${{ runner.os }}-
6 changes: 2 additions & 4 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ concurrency:
cancel-in-progress: true

env:
# We stick to Python 3.13 since qiskit-aer is not available yet for Python 3.14.
# See https://github.com/Qiskit/qiskit-aer/issues/2378.
python-version: "3.13"
python-version: "3.14"

jobs:
mypy-pyright:
Expand Down Expand Up @@ -67,4 +65,4 @@ jobs:
run: |
cd ${{ runner.temp }}
echo "from graphix import Pattern" > test_graphix_type.py
uv run --project ${{ github.workspace }} --no-sync mypy test_graphix_type.py
uv run --project ${{ github.workspace }} --no-sync mypy test_graphix_type.py
Loading