-
Notifications
You must be signed in to change notification settings - Fork 2.9k
uv venv and github actions scripts / workflows #1386
Copy link
Copy link
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationquestionAsking for clarification or supportAsking for clarification or supportvirtualenvRelated to virtual environmentsRelated to virtual environments
Description
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.shOne 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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationquestionAsking for clarification or supportAsking for clarification or supportvirtualenvRelated to virtual environmentsRelated to virtual environments