Skip to content

Commit

Permalink
Run make update-deps in a virtualenv
Browse files Browse the repository at this point in the history
uv refuses to run outside of a virtualenv, so use uv to create one
and activate it before running make update-deps. Fix the Python
version for running tox in the periodic CI workflow.
  • Loading branch information
rra committed Jul 5, 2024
1 parent d090c2c commit 2029e25
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/periodic-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,17 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Update dependencies
run: make update-deps
run: |
pip install --upgrade uv
uv venv
source .venv/bin/activate
make update-deps
shell: bash

- name: Run tests in tox
uses: lsst-sqre/run-tox@v1
with:
python-version: ${{ matrix.python }}
python-version: ${{ env.PYTHON_VERSION }}
tox-envs: "lint,typing,py"
tox-plugins: tox-uv
use-cache: false
Expand Down

0 comments on commit 2029e25

Please sign in to comment.