-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.28 KB
/
tests.yml
File metadata and controls
46 lines (38 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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