Skip to content

Commit c87b177

Browse files
committed
Bump deps
1 parent de9af8d commit c87b177

File tree

3 files changed

+254
-237
lines changed

3 files changed

+254
-237
lines changed

.github/workflows/lint_test.yml

+12-34
Original file line numberDiff line numberDiff line change
@@ -12,54 +12,44 @@ jobs:
1212
lint:
1313
runs-on: ubuntu-latest
1414

15-
env:
16-
UV_CACHE_DIR: /tmp/.uv-cache
17-
1815
steps:
1916
- uses: actions/checkout@v4
2017

21-
- name: Set up uv
22-
run: curl -LsSf https://astral.sh/uv/0.4.30/install.sh | sh
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v3
20+
with:
21+
version: "0.5.x"
22+
enable-cache: true
23+
cache-dependency-glob: "uv.lock"
2324

2425
- name: Set up Python
2526
uses: actions/setup-python@v5
2627
with:
2728
python-version-file: "pyproject.toml"
2829

29-
- name: Restore uv cache
30-
uses: actions/cache@v4
31-
with:
32-
path: /tmp/.uv-cache
33-
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
34-
restore-keys: |
35-
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
36-
uv-${{ runner.os }}
37-
3830
- name: Install dependencies
3931
run: uv sync --all-extras --dev
4032

4133
- name: Run mypy
4234
run: uv run mypy .
4335
if: always()
4436

45-
- name: Minimize uv cache
46-
run: uv cache prune --ci
47-
4837
test:
4938
runs-on: ubuntu-latest
5039
strategy:
5140
matrix:
5241
python-version: ["3.11", "3.12", "3.13"]
5342
fail-fast: false
5443

55-
env:
56-
UV_CACHE_DIR: /tmp/.uv-cache
57-
5844
steps:
5945
- uses: actions/checkout@v4
6046

61-
- name: Set up uv
62-
run: curl -LsSf https://astral.sh/uv/0.4.30/install.sh | sh
47+
- name: Install uv
48+
uses: astral-sh/setup-uv@v3
49+
with:
50+
version: "0.5.x"
51+
enable-cache: true
52+
cache-dependency-glob: "uv.lock"
6353

6454
- name: Set up (release) Python ${{ matrix.python-version }}
6555
uses: actions/setup-python@v5
@@ -73,15 +63,6 @@ jobs:
7363
with:
7464
python-version: ${{ matrix.python-version }}
7565

76-
- name: Restore uv cache
77-
uses: actions/cache@v4
78-
with:
79-
path: /tmp/.uv-cache
80-
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
81-
restore-keys: |
82-
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
83-
uv-${{ runner.os }}
84-
8566
- name: Install dependencies
8667
run: |
8768
uv venv
@@ -98,9 +79,6 @@ jobs:
9879
if-no-files-found: error
9980
include-hidden-files: true
10081

101-
- name: Minimize uv cache
102-
run: uv cache prune --ci
103-
10482
combine-cov:
10583
runs-on: ubuntu-latest
10684
needs: test

.github/workflows/pypi_release.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- name: Set up uv
22-
run: curl -LsSf https://astral.sh/uv/0.4.30/install.sh | sh
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v3
23+
with:
24+
version: "0.5.x"
25+
enable-cache: true
26+
cache-dependency-glob: "uv.lock"
2327

2428
- name: Set up Python
2529
uses: actions/setup-python@v5
2630
with:
2731
python-version-file: "pyproject.toml"
2832

2933
- name: Build package
30-
run: uvx --from build pyproject-build --installer uv
34+
run: uv build
3135

3236
- name: Publish to PyPI
3337
uses: pypa/gh-action-pypi-publish@release/v1.10

0 commit comments

Comments
 (0)