Use python from venv
Some checks failed
Run Tests / run-tests (push) Failing after 10s

This commit is contained in:
2026-05-01 20:31:19 +02:00
parent d665d8e1a0
commit 5155cdf5ae
2 changed files with 21 additions and 4 deletions

View File

@@ -11,13 +11,27 @@ jobs:
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
- name: Update system dependencies
run: |
apt update
apt upgrade libsqlite3-dev
- name: Create virtual env
run: |
python3 -m venv .venv
source .venv/bin/activate
which python
python --version
python -m sqlite3 --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