From 38b05a8485a47ab014f3c7903d91dfd18dd444c6 Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Fri, 8 Mar 2024 12:26:12 +0000 Subject: [PATCH] use precommit in github actions qa --- .github/workflows/python-publish.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 2545bdc..2ebcd11 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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' }} @@ -38,7 +35,7 @@ jobs: needs: quality steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/setup-python@v2 with: @@ -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