diff options
author | Eddy Comyn-Platt <53045993+EddyCMWF@users.noreply.github.com> | 2023-02-28 12:09:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 12:09:54 +0000 |
commit | 85351e4a835a16fff2d64da0f203e0c523432cc1 (patch) | |
tree | fcd71a3e0a05d6d55afcf3a0194fa32f06f4ab17 /.github/workflows/check-and-publish.yml | |
parent | 503efc0dc7cb261d659cf0d61d979eba5184b330 (diff) |
Code quality tests added (#65)
* code quality checks to github actions
* tox.ini options set
Diffstat (limited to '.github/workflows/check-and-publish.yml')
-rw-r--r-- | .github/workflows/check-and-publish.yml | 18 |
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 |