Repository navigation
71 lines (58 loc) · 1.77 KB
/
Copy pathtests.yml
File metadata and controls
71 lines (58 loc) · 1.77 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
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Tests
on: [push, pull_request]
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: uv.lock
- name: Set up Python
run: uv python install 3.11
- name: Sync workspace
run: uv sync --all-packages --all-extras --locked --python 3.11
- name: Pytest (backend)
# --no-sync skips uv run's implicit sync: the step above already installed
# every member and extra, and skipping it keeps each step from re-resolving.
run: cd backend && uv run --no-sync pytest
env:
ENVIRONMENT: local
SECRET_KEY: test-secret-key-for-testing-only
- name: Pytest (cli)
run: cd cli && uv run --no-sync pytest
removal-drills:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
preset:
- core-only
- core-taskiq
- accounts-only
- accounts-rbac
- accounts-admin
- accounts-api-keys
- accounts-rbac-tiers
- accounts-cache-taskiq
- everything
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: uv.lock
- name: Set up Python
run: uv python install 3.11
- name: Sync workspace
run: uv sync --all-packages --all-extras --locked --python 3.11
- name: Removal drill
run: uv run --no-sync python tools/removal_drill.py ${{ matrix.preset }}
env:
ENVIRONMENT: local
SECRET_KEY: test-secret-key-for-testing-only