Skip to content

Fix CI triggering on main branch #30

Fix CI triggering on main branch

Fix CI triggering on main branch #30

Workflow file for this run

name: Checks
on:
pull_request:
branches:
- "main"
defaults:
run:
working-directory: "/app"
jobs:
build:
uses: ./.github/workflows/build.yaml
lint:
runs-on: ubuntu-latest
needs:
- build
services:
registry:
image: registry:2
ports:
- 5000:5000
container:
image: ${{ needs.build.outputs.image }}
strategy:
matrix:
linter: [flake8, isort, black, mypy]
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- run: "make lint/${{ matrix.linter }}"
test:
runs-on: ubuntu-latest
needs:
- build
- lint
services:
registry:
image: registry:2
ports:
- 5000:5000
container:
image: ${{ needs.build.outputs.image }}
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- run: "make test"