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

ci: cache uv #540

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
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
12 changes: 5 additions & 7 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,15 @@ jobs:
with:
python-version: '3.11'

- name: Upgrade nox and uv
run: |
python -m pip install --upgrade 'nox[uv]' pytest-benchmark
uv --version
nox --version

- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.sha }}
fetch-depth: 0

- uses: hynek/setup-cached-uv@v2
- name: Install nox
run: uv pip install --system nox --upgrade

- name: Benchmark on base branch
run: nox -s bench -- --benchmark-save=base

Expand All @@ -52,4 +50,4 @@ jobs:

- name: Compare benchmark
if: always()
run: pytest-benchmark compare --group-by name
run: uvx pytest-benchmark compare --group-by name
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ jobs:
with:
python-version: '3.11'

- name: Upgrade nox and uv
run: |
python -m pip install --upgrade 'nox[uv]'
nox --version
uv --version
- uses: hynek/setup-cached-uv@v2
- name: Install nox
run: uv pip install --system nox --upgrade

- name: Build package
run: nox -s build
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ jobs:
with:
python-version: ${{ matrix.pyv }}

- name: Upgrade nox and uv
run: |
python -m pip install --upgrade 'nox[uv]'
nox --version
uv --version
- uses: hynek/setup-cached-uv@v2
- name: Install nox
run: uv pip install --system nox --upgrade

- name: Cache pre-commit hooks
uses: actions/cache@v4
Expand Down
Loading