Files
calminer/.gitea/workflows/test.yml
zwitschi 9b0c29bade
Some checks failed
Build and Push Docker Image / build-and-push (push) Successful in 1m3s
Deploy to Server / deploy (push) Failing after 3s
Run Tests / test (push) Failing after 5m18s
refactor: Simplify caching steps in CI workflow and remove redundant cache for test dependencies
2025-10-24 19:53:03 +02:00

29 lines
754 B
YAML

name: Run Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Cache pip
uses: https://github.com/actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-test.txt
- name: Run tests
env:
DATABASE_URL: sqlite:///./test_calminer.db
run: pytest