-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (43 loc) · 1.11 KB
/
check-pr.yaml
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
name: Check PR
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
check-pr-specific-python-version:
name: Check PR for python ${{ matrix.python_version }}
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python_version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Environment
uses: ./.github/actions/setup_environment
with:
python-version: ${{ matrix.python_version }}
- name: Install Dependencies
run: task init
- name: Lint PR
run: task lint
- name: Test Unit
run: task test-unit
- name: Test Integration
run: task test-integration
- name: Test E2E
run: task test-e2e
check-pr:
runs-on: ubuntu-latest
if: always() && !cancelled()
needs:
- check-pr-specific-python-version
steps:
- name: Collect Result
uses: ovsds/collect-needs-result-action@v1
with:
needs_json: ${{ toJson(needs) }}