summaryrefslogtreecommitdiff
path: root/.github/workflows/check-and-publish.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/check-and-publish.yml')
-rw-r--r--.github/workflows/check-and-publish.yml18
1 files changed, 16 insertions, 2 deletions
diff --git a/.github/workflows/check-and-publish.yml b/.github/workflows/check-and-publish.yml
index 9b783de..60e0319 100644
--- a/.github/workflows/check-and-publish.yml
+++ b/.github/workflows/check-and-publish.yml
@@ -12,7 +12,21 @@ on:
jobs:
- checks:
+ quality-checks:
+ name: Code QA
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - run: pip install black flake8 isort
+ - run: black --version
+ - run: isort --version
+ - run: flake8 --version
+ - run: isort --check .
+ - run: black --check .
+ - run: flake8 .
+
+ platform-checks:
+ needs: quality-checks
strategy:
fail-fast: false
matrix:
@@ -41,11 +55,11 @@ jobs:
pytest
deploy:
+ needs: platform-checks
if: ${{ github.event_name == 'release' }}
name: Upload to Pypi
- needs: checks
runs-on: ubuntu-latest