Skip to content

Commit

Permalink
MAINT: update to astral-sh/setup-uv@v5 (#119)
Browse files Browse the repository at this point in the history
* FIX: fetch all tags in benchmark workflow
* MAINT: remove `enable-cache` argument (defaults to true)
* MAINT: update to `astral-sh/setup-uv@v5`
  https://github.com/astral-sh/setup-uv/releases/tag/v5.0.0
  • Loading branch information
redeboer authored Dec 20, 2024
1 parent 71baf9a commit 9e66004
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 16 deletions.
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

0 comments on commit 9e66004

Please sign in to comment.