Skip to content

Build on releases, mitigate deprecation warning #7

Build on releases, mitigate deprecation warning

Build on releases, mitigate deprecation warning #7

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install Playwright browsers
run: playwright install --with-deps chromium
- name: Run unit tests
env:
DATABASE_URL: sqlite:///./test.db
SECRET_KEY: test-secret-key-for-ci
OIDC_CLIENT_ID: test
OIDC_CLIENT_SECRET: test
OIDC_DISCOVERY_URL: https://example.com/.well-known/openid-configuration
OIDC_REDIRECT_URI: http://localhost:8000/auth/callback
BASE_URL: http://localhost:8000
run: pytest tests/ --ignore=tests/test_ui.py -v
- name: Run UI tests
env:
DATABASE_URL: sqlite:///./test.db
SECRET_KEY: test-secret-key-for-ci
OIDC_CLIENT_ID: test
OIDC_CLIENT_SECRET: test
OIDC_DISCOVERY_URL: https://example.com/.well-known/openid-configuration
OIDC_REDIRECT_URI: http://localhost:8000/auth/callback
BASE_URL: http://localhost:8000
run: pytest tests/test_ui.py -v