-
Notifications
You must be signed in to change notification settings - Fork 42
55 lines (46 loc) · 1.26 KB
/
EVENT_pull_request.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
name: pull_request
run-name: Pull Request
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
# Prevent running concurrently
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
get_changed_files:
name: Get changed files
uses: ./.github/workflows/JOB_get_changed_files.yml
permissions:
contents: read
format:
name: Check format of python
needs: get_changed_files
uses: ./.github/workflows/JOB_format.yml
with:
files: ${{ needs.get_changed_files.outputs.python_changed_files }}
permissions:
contents: read
lint:
name: Lint python
needs: get_changed_files
uses: ./.github/workflows/JOB_lint.yml
with:
files: ${{ needs.get_changed_files.outputs.python_changed_files }}
permissions:
contents: read
# typecheck:
# name: Analyse types in python
# needs: get_changed_files
# uses: ./.github/workflows/JOB_typecheck.yml
# with:
# files: ${{ needs.get_changed_files.outputs.python_changed_files }}
# permissions:
# contents: read
run_tests:
name: Run tests
uses: ./.github/workflows/JOB_tests.yml
permissions:
contents: read