-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.17 KB
/
ci.yml
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
name: CI
on:
pull_request:
workflow_dispatch:
jobs:
ci-job:
name: Checks
uses: ./.github/workflows/checks.yml
secrets: inherit
metrics:
needs: [ ci-job ]
uses: ./.github/workflows/report.yml
gate-1:
name: Gate 1 - Regular CI
needs: [ ci-job ]
runs-on: ubuntu-latest
steps:
- name: Branch Protection
run: true
slow-test-detection:
name: Run Slow or Expensive Tests (e.g. SaaS)?
runs-on: ubuntu-latest
steps:
- name: Detect Slow Tests
run: true
environment:
slow-tests
run-itests-no-db:
name: iTests (no DB)
uses: ./.github/workflows/tests-integration-no-db.yml
needs: [ slow-test-detection ]
secrets: inherit
with:
slow-tests: true
python-version: "3.10"
run-itests-with-db:
name: iTests (with DB)
uses: ./.github/workflows/tests-integration-db.yml
needs: [ slow-test-detection ]
secrets: inherit
with:
slow-tests: true
python-version: "3.10"
gate-2:
name: Gate 2 - Allow Merge
runs-on: ubuntu-latest
needs: [ run-itests-no-db, run-itests-with-db ]
steps:
- name: Branch Protection
run: true