Files
calminer/.gitea/workflows/test.yml
zwitschi f35607fedc
Some checks failed
Build and Push Docker Image / build-and-push (push) Successful in 1m8s
Deploy to Server / deploy (push) Failing after 2s
Run Tests / test (push) Failing after 9m32s
feat: Add CI workflow for running tests and update database URL handling
2025-10-24 19:19:24 +02:00

36 lines
1.1 KiB
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: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
- name: Cache pip test dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-test-${{ hashFiles('requirements-test.txt') }}
restore-keys: |
${{ runner.os }}-pip-test-
${{ runner.os }}-pip-test-${{ hashFiles('requirements-test.txt') }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-test.txt
- name: Run tests
run: pytest