uv
uv copied to clipboard
`uv venv` and github actions scripts / workflows
Having trouble converting our pre-existing CI workflows / scripts to use uv
, as you can see here. Problem relates to the virtual environments which don't seem to be retained between workflow steps.
This is maybe the easiest illustration of that:
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.10'
- name: Install current package as editable
run: |
pip install uv
uv venv
uv pip install darglint
- name: Check docstrings
run: bash scripts/docstring.sh
One step installs it, and then the next step runs a script which in turn attempts to use the package, but it fails because the CI can't be found.
I don't see any docs yet, so wondering how best to handle this?