Skip to content

Commit b2e51ad

Browse files
committed
Keep re-dist. tests uv-free, simulating downstream
1 parent c2b6553 commit b2e51ad

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/test-redistribute.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
# Issue ref: https://github.com/actions/setup-python/issues/436
2626
# cache: "pip"
2727
# cache-dependency-path: pyproject.toml
28-
- name: Install uv
29-
uses: astral-sh/setup-uv@v7
28+
- name: Install build dependencies
29+
run: pip install build
3030
- name: Build source distribution
31-
run: uv build --sdist
31+
run: python -m build --sdist
3232
- name: Decompress source distribution
3333
run: |
3434
cd dist

.github/workflows/test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,11 @@ jobs:
6767
if: matrix.pydantic-version == 'v1'
6868
run: uv pip install "pydantic<2.0.0"
6969
- name: Lint
70-
run: bash scripts/lint.sh
71-
env:
72-
UV_NO_SYNC: "1"
70+
run: uv run --no-sync scripts/lint.sh
7371
- run: mkdir coverage
7472
- name: Test
75-
run: bash scripts/test.sh
73+
run: uv run --no-sync scripts/test.sh
7674
env:
77-
UV_NO_SYNC: "1"
7875
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
7976
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}
8077
- name: Store coverage files

scripts/lint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
set -e
44
set -x
55

6-
uv run mypy src tests
7-
uv run ruff check src tests scripts
8-
uv run ruff format src tests --check
6+
mypy src tests
7+
ruff check src tests scripts
8+
ruff format src tests --check

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
set -e
44
set -x
55

6-
uv run coverage run -m pytest tests ${@}
6+
coverage run -m pytest tests ${@}

0 commit comments

Comments
 (0)