8000 CI: Lint and test via uv (#32) · python/blurb@2a19feb · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a19feb

Browse files
authored
CI: Lint and test via uv (#32)
2 parents a0829f7 + 4dc2e02 commit 2a19feb

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1719
- uses: actions/setup-python@v5
1820
with:
1921
python-version: "3.x"
20-
cache: pip
21-
- uses: pre-commit/action@v3.0.1
22+
- uses: tox-dev/action-pre-commit-uv@v1

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 0
27+
persist-credentials: false
2728

2829
- uses: hynek/build-and-inspect-python-package@v2
2930

@@ -50,7 +51,6 @@ jobs:
5051
- name: Publish to Test PyPI
5152
uses: pypa/gh-action-pypi-publish@release/v1
5253
with:
53-
attestations: true
5454
repository-url: https://test.pypi.org/legacy/
5555

5656
# Publish to PyPI on GitHub Releases.
@@ -82,5 +82,3 @@ jobs:
8282

8383
- name: Publish to PyPI
8484
uses: pypa/gh-action-pypi-publish@release/v1
85-
with:
86-
attestations: true

.github/workflows/test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,21 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
2123

2224
- name: Set up Python ${{ matrix.python-version }}
2325
uses: actions/setup-python@v5
2426
with:
2527
python-version: ${{ matrix.python-version }}
2628
allow-prereleases: true
27-
cache: pip
2829

29-
- name: Install dependencies
30-
run: |
31-
python --version
32-
python -m pip install -U pip
33-
python -m pip install -U tox
30+
- name: Install uv
31+
uses: hynek/setup-cached-uv@v2
3432

3533
- name: Tox tests
3634
run: |
37-
tox -e py
35+
uvx --with tox-uv tox -e py
3836
3937
- name: Upload coverage
4038
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)
0