From e8402dde60cd7122f57c613c65fd19ba80c7843d Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Fri, 1 May 2026 19:12:40 +0200 Subject: [PATCH] Use python from venv --- .gitea/workflows/test.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 5cbf939..31ddd84 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -11,13 +11,21 @@ jobs: uses: actions/checkout@v4 with: ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }} + - name: Create virtual env + run: | + python3 -m venv .venv + which python + python --version - name: Install poetry run: | - python3 -m pip install poetry==2.3.4 + source .venv/bin/activate + pip install poetry==2.3.4 - name: Install the project dependencies run: | - python3 -m poetry install - python3 -m poetry env info + source .venv/bin/activate + poetry install + poetry env info - name: Run the automated tests run: | - python3 -m poetry run python -m pytest tests + source .venv/bin/activate + poetry run pytest tests