diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 4c57e3f..d12bb9f 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -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