Files
calminer/.gitea/workflows/ci.yml
zwitschi 72cf06a31d
Some checks failed
CI / test (pull_request) Failing after 1m10s
feat: add step to install Playwright browsers in CI workflow
2025-10-29 13:39:02 +01:00

57 lines
1.3 KiB
YAML

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: calminer
POSTGRES_PASSWORD: calminer_password
POSTGRES_DB: calminer_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-test.txt
- name: Install Playwright browsers
run: playwright install
- name: Run tests
env:
DATABASE_HOST: postgres
DATABASE_PORT: 5432
DATABASE_USER: calminer
DATABASE_PASSWORD: calminer_password
DATABASE_NAME: calminer_test
DATABASE_DRIVER: postgresql
run: |
pytest tests/ --cov=.
- name: Build Docker image
run: |
docker build -t calminer .