-
-
Notifications
You must be signed in to change notification settings - Fork 89
58 lines (50 loc) · 1.31 KB
/
Copy pathe2e-tests.yaml
File metadata and controls
58 lines (50 loc) · 1.31 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
47
48
49
50
51
52
53
54
55
56
57
58
name: e2e-tests
on:
workflow_dispatch:
inputs:
test_path:
description: "specific test to run (e.g., e2e/auth/test_login.py::TestLoginSuccess)"
required: false
default: ""
push:
branches: [main]
paths:
- "app/**"
- "tests/**"
- ".github/workflows/e2e-tests.yaml"
pull_request:
branches: [main]
paths:
- "app/**"
- "tests/**"
- ".github/workflows/e2e-tests.yaml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e-tests:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: checkout repository
uses: actions/checkout@v6
- name: set up python 3.14
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "app/pyproject.toml"
- name: install dependencies
run: make install
- name: run e2e tests
env:
DEFAULT_ADMIN_PASSWORD: admin
run: |
if [ -n "${{ github.event.inputs.test_path }}" ]; then
cd app && uv run pytest ../tests/${{ github.event.inputs.test_path }} -v --tb=short
else
make test
fi