Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More uv + caching #1315

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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