Skip to content

Commit

Permalink
ci: remove setup-python (#1409)
Browse files Browse the repository at this point in the history
* ci: remove setup-python where possible

* Remove more
  • Loading branch information
hynek authored Feb 22, 2025
1 parent 74007f6 commit 41eff8e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
28 changes: 5 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ jobs:
name: Packages
path: dist
- run: tar xf dist/*.tar.gz --strip-components=1
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- uses: hynek/setup-cached-uv@v2

- name: Prepare tox
Expand Down Expand Up @@ -116,10 +112,6 @@ jobs:
- run: |
tar xf dist/*.tar.gz --strip-components=1
rm -rf src # ensure tests run against wheel
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- uses: hynek/setup-cached-uv@v2

- run: >
Expand All @@ -140,9 +132,6 @@ jobs:
name: Packages
path: dist
- run: tar xf dist/*.tar.gz --strip-components=1
- uses: actions/setup-python@v5
with:
python-version-file: .python-version-default
- uses: hynek/setup-cached-uv@v2

- name: Download coverage data
Expand All @@ -153,7 +142,7 @@ jobs:

- name: Combine coverage & fail if it's <100%.
run: |
uv tool install coverage
uv tool install --python $(cat .python-version-default) coverage
coverage combine
coverage html --skip-covered --skip-empty
Expand Down Expand Up @@ -182,10 +171,6 @@ jobs:
name: Packages
path: dist
- run: tar xf dist/*.tar.gz --strip-components=1
- uses: actions/setup-python@v5
with:
# Keep in sync with tox/docs and .readthedocs.yaml.
python-version: "3.13"
- uses: hynek/setup-cached-uv@v2

- run: uvx --with=tox-uv tox run -e docs-doctests,changelog
Expand All @@ -197,12 +182,12 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version-file: .python-version-default
- uses: hynek/setup-cached-uv@v2

- run: uvx --with=tox-uv tox run -e pyright
- run: >
uvx --with=tox-uv
--python $(cat .python-version-default)
tox run -e pyright
install-dev:
name: Verify dev env
Expand All @@ -212,9 +197,6 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version-file: .python-version-default
- uses: hynek/setup-cached-uv@v2

- run: uv venv --python $(cat .python-version-default)
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2
build:
os: ubuntu-lts-latest
tools:
# Keep version in sync with tox.ini/docs and ci.yml/docs.
# Keep version in sync with tox.ini/docs.
python: "3.13"
jobs:
create_environment:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ commands = pytest --codspeed -n auto bench/test_benchmarks.py


[testenv:docs-{build,doctests,linkcheck}]
# Keep base_python in sync with ci.yml/docs and .readthedocs.yaml.
# Keep base_python in sync with .readthedocs.yaml.
base_python = py313
extras = docs
commands =
Expand Down

0 comments on commit 41eff8e

Please sign in to comment.