Skip to content

Commit 0318c20

Browse files
committed
Rationalise uv options in workflows.
Intention is that setup/action.yaml fully configures the uv venv, and other workflows use `--frozen` so as not to modify the venv.
1 parent 5f5a69a commit 0318c20

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: glenn20/python-ci/setup@v1
2323

2424
- name: Build package
25-
run: uv build --frozen --no-sources
25+
run: uv build
2626

2727
- name: Store the distribution packages
2828
uses: actions/upload-artifact@v4

.github/workflows/check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
uses: glenn20/python-ci/setup@v1
2121

2222
- name: mypy
23-
run: uv run --no-sources --all-extras mypy
23+
run: uv run --frozen mypy
2424

2525
- name: lint
26-
run: uv run --no-sources --all-extras ruff check
26+
run: uv run --frozen ruff check
2727

2828
- name: format
29-
run: uv run --no-sources --all-extras ruff format --check
29+
run: uv run --frozen ruff format --check

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
python-version: ${{ matrix.python-version }}
5252

5353
- name: pytest
54-
run: uv run --no-sources --all-extras pytest
54+
run: uv run --frozen pytest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ the project repo and adjust according to the project needs.
8181
To ensure that the `_version.py` file is updated with a new version after
8282
every commit or checkout, add this command to the `.git/hooks/post-commit` and
8383
`.git/hooks/post-checkout` files:
84-
- `uv run --frozen hatch build --hooks-only > /dev/null`
84+
- `uv run hatch build --hooks-only > /dev/null`
8585

8686
## Reusable Github Workflows provided
8787

0 commit comments

Comments
 (0)