-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.05 KB
/
pull-request-test.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
# Tests that must pass in order for a PR to be allowed on the main branch
# it is expected that they finish fast, thal ALL tests pass
# and no verbose logging / debugging is enabled.
#
# They should run as much as possible in parallel.
name: Pull Request Essential Tests
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
run_tests:
strategy:
fail-fast: true
matrix:
category:
- cold_storage
- basic
- presign
config:
- "../params.example.yaml"
uses: ./.github/workflows/run-tests.yml
with:
tests: "*_test.py"
config: "${{ matrix.config }}"
flags: "-v -n auto --color yes -m '${{ matrix.category }}' --tb=line"
secrets:
PROFILES: ${{ secrets.PROFILES }}
tests-success:
runs-on: ubuntu-24.04
needs: [run_tests]
steps:
- name: ok
run:
exit 0
cleanup_tests:
needs: [run_tests]
if: always()
uses: ./.github/workflows/cleanup-tests.yml
secrets:
PROFILES: ${{ secrets.PROFILES }}