Set up venv
This commit is contained in:
parent
459dc4b588
commit
4354000e33
1 changed files with 8 additions and 2 deletions
|
@ -44,10 +44,16 @@ jobs:
|
|||
python-version: "3.13"
|
||||
cache: pip
|
||||
- name: Set up the Python environment
|
||||
run: pip install -r requirements.txt
|
||||
# For most Python CI stuff this isn't needed, but maturin specifically doesn't like to function without a venv
|
||||
run: |
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
- name: Build Rust code
|
||||
run: maturin develop
|
||||
- name: Run Python tests
|
||||
run: pytest tests/*.py
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
pytest tests/*.py
|
||||
- name: Run Rust tests
|
||||
run: cargo test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue