Skip to content

Commit fd1b23e

Browse files
authored
Cache uv. Change --prerelease to explicit (#34)
1 parent 7d28936 commit fd1b23e

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- name: Install uv
1919
uses: astral-sh/setup-uv@v5
20+
with:
21+
enable-cache: "true"
2022
- name: Run Ruff
2123
run: uv run ruff check . --output-format=github
2224
- name: Ruff format

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ jobs:
2222
- uses: actions/checkout@v4
2323
- name: Install uv
2424
uses: astral-sh/setup-uv@v5
25+
with:
26+
enable-cache: "true"
2527
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
26-
- run: uv build --prerelease=allow
28+
# Allow prerelease if explicitly marked in pyproject.toml so we can prerelease in conjunction
29+
# with engine updates.
30+
- run: uv build --prerelease=explicit
2731
- uses: pypa/gh-action-pypi-publish@release/v1
2832
with:
2933
packages-dir: ./dist

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
- uses: actions/checkout@v4
2525
- name: Install uv
2626
uses: astral-sh/setup-uv@v5
27+
with:
28+
enable-cache: "true"
2729
- name: Run tests
2830
run: |
2931
uv run -p ${{ matrix.python-version }} --prerelease=allow pytest
@@ -35,8 +37,12 @@ jobs:
3537
- uses: actions/checkout@v4
3638
- name: Install uv
3739
uses: astral-sh/setup-uv@v5
40+
with:
41+
enable-cache: "true"
3842
- name: Set up env
39-
run: uv sync --prerelease=allow
43+
# Allow prerelease if explicitly marked in pyproject.toml so we can prerelease in conjunction
44+
# with engine updates.
45+
run: uv sync --prerelease=explicit
4046
- name: Install package
4147
run: source .venv/bin/activate && uv pip install .
4248
- name: Check entry point

0 commit comments

Comments
 (0)