diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2909896..8eb42ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,26 @@ env: IMAGE_NAME: donkie/spoolman jobs: + # + # Linting + # + style: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.9" + + - name: Install pre-commit + run: pip install pre-commit==3.3.3 + + - name: Run pre-commit + run: pre-commit run --all-files + # # Build native image for integration tests # build-amd64: @@ -201,7 +221,7 @@ jobs: # release: if: ${{ github.event_name != 'pull_request' }} - needs: [test, build-amd64, build-arm64, build-armv7] + needs: [test, build-amd64, build-arm64, build-armv7, style] runs-on: ubuntu-latest steps: - name: Checkout