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

This commit is contained in:
2026-05-01 19:12:40 +02:00
parent 0632899f7a
commit 79d554b8fc

View File

@@ -11,13 +11,22 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }} ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
- name: Create virtual env
run: |
python3 -m venv .venv
source .venv/bin/activate
which python
python --version
- name: Install poetry - name: Install poetry
run: | run: |
python3 -m pip install poetry==2.3.4 source .venv/bin/activate
pip install poetry==2.3.4
- name: Install the project dependencies - name: Install the project dependencies
run: | run: |
python3 -m poetry install source .venv/bin/activate
python3 -m poetry env info poetry install
poetry env info
- name: Run the automated tests - name: Run the automated tests
run: | run: |
python3 -m poetry run python -m pytest tests source .venv/bin/activate
poetry run pytest tests