Skip to content

Fix CI triggering on main branch #24

Fix CI triggering on main branch

Fix CI triggering on main branch #24

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 }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
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 }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- run: "make test"