Skip to content

Commit

Permalink
Use setup-cached-uv (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek authored Jul 26, 2024
1 parent 12e7a98 commit ddf90cd
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
- run: python -Im pip install tox-uv
- uses: hynek/setup-cached-uv@v2
- run: uv pip install --system tox-uv

- run: python -Im tox run --installpkg dist/*.whl -f py$(echo ${{ matrix.python-version }} | tr -d .)

Expand All @@ -72,8 +72,8 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version-file: .python-version-default
cache: pip
- run: python -Im pip install --upgrade coverage[toml]
- uses: hynek/setup-cached-uv@v2
- run: uv pip install --system --upgrade coverage[toml]
- uses: actions/download-artifact@v4
with:
pattern: coverage-data-*
Expand Down Expand Up @@ -113,8 +113,8 @@ jobs:
with:
python-version-file: .python-version-default
allow-prereleases: true
cache: pip
- run: python -Im pip install tox-uv
- uses: hynek/setup-cached-uv@v2
- run: uv pip install --system tox-uv

- run: python -Im tox run --installpkg dist/*.whl -e mypy-pkg

Expand All @@ -134,8 +134,8 @@ jobs:
with:
python-version-file: .python-version-default
allow-prereleases: true
cache: pip
- run: python -Im pip install tox-uv
- uses: hynek/setup-cached-uv@v2
- run: uv pip install --system tox-uv

- run: python -Im tox run --installpkg dist/*.whl -e pyright

Expand All @@ -154,8 +154,8 @@ jobs:
with:
# Keep in sync with tox.ini/docs & .readthedocs.yaml
python-version: "3.12"
cache: pip
- run: python -Im pip install tox-uv
- uses: hynek/setup-cached-uv@v2
- run: uv pip install --system tox-uv

- run: python -Im tox run -e docs

Expand All @@ -171,9 +171,8 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version-file: .python-version-default
cache: pip
- uses: hynek/setup-cached-uv@v2

- run: python -Im pip install uv
- run: uv venv
- run: uv pip install -e .[dev]

Expand Down Expand Up @@ -211,8 +210,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version-file: .python-version-default
cache: pip
# tox 4.12.0 started passing FORCE_COLOR and NO_COLOR by default.
- run: python -Im pip install 'tox>=4.12.0' tox-uv
- uses: hynek/setup-cached-uv@v2
- run: uv pip install --system tox-uv

- run: python -Im tox run -f color

0 comments on commit ddf90cd

Please sign in to comment.