diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81895d745..70f3fadfb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: > @@ -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 @@ -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 @@ -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 @@ -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 @@ -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) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index d58ce3386..741e9946e 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -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: diff --git a/tox.ini b/tox.ini index f39de7e3b..136239a96 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =