-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (45 loc) · 1.04 KB
/
checks.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
name: Checks
on:
pull_request_target:
branches:
- "main"
defaults:
run:
working-directory: "/app"
jobs:
build:
uses: ./.github/workflows/build.yaml
lint:
runs-on: ubuntu-latest
needs:
- build
container:
image: ${{ needs.build.outputs.image }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
strategy:
matrix:
linter: [flake8, isort, black, mypy]
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: "make lint/${{ matrix.linter }}"
test:
runs-on: ubuntu-latest
needs:
- build
- lint
container:
image: ${{ needs.build.outputs.image }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: "make test"