-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (42 loc) · 954 Bytes
/
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
name: Checks
on:
pull_request_target:
branches:
- "main"
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
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:
- 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:
- run: "make test"