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

MAINT: update to astral-sh/setup-uv@v5 #119

Merged
merged 4 commits into from
Dec 20, 2024
Merged
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
3 changes: 1 addition & 2 deletions .github/workflows/docnb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- uses: astral-sh/setup-uv@v4
- uses: astral-sh/setup-uv@v5
with:
cache-dependency-glob: |
**/pyproject.toml
**/uv.lock
enable-cache: true
- name: Fetch Jupyter cache
if: inputs.specific-pip-packages == ''
uses: actions/cache@v4
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- uses: astral-sh/setup-uv@v4
- uses: astral-sh/setup-uv@v5
with:
cache-dependency-glob: |
**/pyproject.toml
**/uv.lock
enable-cache: true
- if: inputs.apt-packages
run: |
sudo apt-get update -y
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- uses: astral-sh/setup-uv@v5
- run: uv lock --upgrade
- uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,12 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- uses: astral-sh/setup-uv@v4
- uses: astral-sh/setup-uv@v5
with:
cache-dependency-glob: |
**/.pre-commit-config.yaml
**/pyproject.toml
**/uv.lock
enable-cache: true
- name: Fetch pre-commit cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -110,6 +109,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.token || secrets.GITHUB_TOKEN }}
- uses: actions/download-artifact@v4
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v4
- uses: astral-sh/setup-uv@v5
with:
cache-dependency-glob: |
**/pyproject.toml
**/uv.lock
enable-cache: true
- uses: ComPWA/actions/cache-sympy@v2
- id: extra
if: inputs.additional-extras
Expand Down
4 changes: 3 additions & 1 deletion build-pypi-distribution/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ runs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v3
- uses: astral-sh/setup-uv@v5
with:
enable-cache: false
- run: uv pip install --color=always --system build
shell: bash
- run: python3 -m build
Expand Down
4 changes: 3 additions & 1 deletion create-pytest-matrix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ runs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v3
- uses: astral-sh/setup-uv@v5
with:
enable-cache: false
- env:
UV_SYSTEM_PYTHON: 1
id: set-matrix
Expand Down
4 changes: 3 additions & 1 deletion create-python-version-matrix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ runs:
with:
python-version: "3.12"
- if: hashFiles('pyproject.toml')
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v5
with:
enable-cache: false
- env:
UV_SYSTEM_PYTHON: 1
id: set-matrix
Expand Down
1 change: 0 additions & 1 deletion get-pypi-name/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ runs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v3
- id: determine-name
name: Determine Python package name
run: |
Expand Down
4 changes: 3 additions & 1 deletion get-skipped-pre-commit-hooks/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ runs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v3
- uses: astral-sh/setup-uv@v5
with:
enable-cache: false
- env:
UV_SYSTEM_PYTHON: 1
id: set-hooks
Expand Down