Skip to content

Commit 09c0257

Browse files
committed
Simplify GitHub Actions
1 parent b799f93 commit 09c0257

File tree

3 files changed

+5
-31
lines changed

3 files changed

+5
-31
lines changed

.github/workflows/check.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v4
3636
- uses: astral-sh/setup-uv@v6
37-
with:
38-
version: "latest"
3937
- run: |
4038
uv run --python=3.12 --extra=dev mypy --python-version=${{ matrix.python-version }}
4139
@@ -46,8 +44,6 @@ jobs:
4644
steps:
4745
- uses: actions/checkout@v4
4846
- uses: astral-sh/setup-uv@v6
49-
with:
50-
version: "latest"
5147
- run: |
5248
uv run --python=3.12 --extra=dev flake8 $(git ls-files | grep 'py$') --color=always
5349
@@ -63,7 +59,5 @@ jobs:
6359
steps:
6460
- uses: actions/checkout@v4
6561
- uses: astral-sh/setup-uv@v6
66-
with:
67-
version: "latest"
6862
- run: |
6963
uv run --python=${{ matrix.python-version }} --extra=dev pytest -vv

.github/workflows/publish.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,9 @@ jobs:
1717
id-token: write
1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Set up Python 3.12
21-
uses: actions/setup-python@v5
22-
with:
23-
python-version: "3.12"
24-
- name: Install pypa/build
25-
run: >-
26-
python -m
27-
pip install
28-
build
29-
--user
30-
- name: Build a binary wheel and a source tarball
31-
run: >-
32-
python -m
33-
build
34-
--sdist
35-
--wheel
36-
--outdir dist/
37-
.
20+
- uses: astral-sh/setup-uv@v6
21+
- run: uv python install
22+
- run: uv build
3823
- name: Publish distribution to PyPI
3924
if: startsWith(github.ref, 'refs/tags')
40-
uses: pypa/gh-action-pypi-publish@release/v1
25+
run: uv publish

.github/workflows/typeshed_primer.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,7 @@ jobs:
3636
with:
3737
repository: python/typeshed
3838
path: typeshed
39-
- name: Setup Python
40-
uses: actions/setup-python@v5
41-
with:
42-
python-version: "3.12"
43-
- name: Install uv
44-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
39+
- uses: astral-sh/setup-uv@v6
4540
- run: uv pip install flake8-noqa --system
4641
# We cd so that "old_plugin"/"new_plugin"/typeshed" don't appear in the error path
4742
- name: flake8 typeshed using target branch

0 commit comments

Comments
 (0)