Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
use precommit in github actions qa
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Mar 8, 2024
1 parent c5f925e commit 38b05a8
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ jobs:
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 .
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.1

checks:
if: ${{ github.event_name == 'release' }}
Expand All @@ -38,7 +35,7 @@ jobs:
needs: quality

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
with:
Expand All @@ -61,7 +58,7 @@ jobs:
needs: checks

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
Expand Down

0 comments on commit 38b05a8

Please sign in to comment.