diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8fcb57..765c850 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,3 +71,9 @@ jobs: contents: read security-events: write uses: ./.github/workflows/lint-docker.yml + + quality: + if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main' + permissions: + contents: read + uses: infinito-nexus/quality/.github/workflows/quality.yml@003eed66dd51592c3312a7c21ae429abead54d6f # v0.2.0 diff --git a/.github/workflows/lint-python.yml b/.github/workflows/lint-python.yml index 8fa6a6c..a6a2d10 100644 --- a/.github/workflows/lint-python.yml +++ b/.github/workflows/lint-python.yml @@ -8,19 +8,7 @@ permissions: jobs: lint-python: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v7 - - - name: Set up Python - uses: actions/setup-python@v7 - with: - python-version: "3.12" - - - name: Install ruff - run: pip install ruff - - - name: Run ruff - run: | - ruff check src tests + uses: infinito-nexus/quality/.github/workflows/tool.yml@003eed66dd51592c3312a7c21ae429abead54d6f # v0.2.0 + with: + tool: ruff + args: check src tests