Skip to content

Commit

Permalink
More uv + caching (#1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek authored Jul 31, 2024
1 parent 7c6490b commit bf8727a
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
- uses: hynek/setup-cached-uv@v2

- name: Prepare tox
run: |
Expand All @@ -70,9 +70,9 @@ jobs:
echo DO_MYPY=$DO_MYPY >>$GITHUB_ENV
echo TOX_PYTHON=py$(echo $V | tr -d .) >>$GITHUB_ENV
python -Im pip install tox
uv pip install --system tox
- run: python -Im pip install tox-uv
- run: uv pip install --system tox-uv
if: matrix.python-version != '3.7'

- run: python -Im tox run -e ${{ env.TOX_PYTHON }}-mypy
Expand Down Expand Up @@ -119,9 +119,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
- uses: hynek/setup-cached-uv@v2

- run: python -Im pip install tox-uv
- run: uv pip install --system tox-uv

- run: >
python -Im
Expand All @@ -144,7 +144,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version-file: .python-version-default
cache: pip
- uses: hynek/setup-cached-uv@v2

- name: Download coverage data
uses: actions/download-artifact@v4
Expand All @@ -154,7 +154,7 @@ jobs:

- name: Combine coverage & fail if it's <100%.
run: |
python -Im pip install coverage[toml]
uv pip install --system coverage[toml]
python -Im coverage combine
python -Im coverage html --skip-covered --skip-empty
Expand Down Expand Up @@ -187,9 +187,9 @@ jobs:
with:
# Keep in sync with tox/docs and .readthedocs.yaml.
python-version: "3.12"
cache: pip
- uses: hynek/setup-cached-uv@v2

- run: python -Im pip install tox-uv
- run: uv pip install --system tox-uv
- run: python -Im tox run -e docs,changelog

pyright:
Expand All @@ -200,9 +200,9 @@ 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 tox-uv
- run: uv pip install --system tox-uv
- run: python -Im tox run -e pyright

install-dev:
Expand All @@ -214,9 +214,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 --python $(cat .python-version-default)
- run: uv pip install -e .[dev]

Expand Down

0 comments on commit bf8727a

Please sign in to comment.