CI: Only build if checks pass

This commit is contained in:
Matthew Edwards
2019-10-07 23:24:08 +13:00
parent 9b91d1df4d
commit 3ac6df1d64
2 changed files with 12 additions and 14 deletions
@@ -8,10 +8,20 @@
# and the Docker version on Docker Hub is super outdated. Oh well, this is
# faster anyway.
name: Build and publish Docker image
name: Run checks, build and publish Docker image
on: [push]
jobs:
build:
Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@master
- name: Install and run pre-commit
run: |
pip install pre-commit
pre-commit run -a -v
Build:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
-12
View File
@@ -1,12 +0,0 @@
name: Check
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@master
- name: Install and run pre-commit
run: |
pip install pre-commit
pre-commit run -a -v