Files
daily-counter/.gitea/workflows/test.yaml
John Ahlroos 79d554b8fc
Some checks failed
Run Tests / run-tests (push) Failing after 39s
Use python from venv
2026-05-01 19:49:39 +02:00

33 lines
823 B
YAML

name: Run Tests
on:
push: {}
env:
RUNNER_TOOL_CACHE: /toolcache
jobs:
run-tests:
runs-on: python
steps:
- name: Checkout
uses: actions/checkout@v4
with:
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
run: |
source .venv/bin/activate
pip install poetry==2.3.4
- name: Install the project dependencies
run: |
source .venv/bin/activate
poetry install
poetry env info
- name: Run the automated tests
run: |
source .venv/bin/activate
poetry run pytest tests