β¬οΈπͺ Update pre-commit hook adhtruong/mirrors-typos to v1.43.3 (#588) #1947
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| merge_group: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| change-detection: | |
| name: π Change | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11 | |
| python-tests: | |
| name: π Test | |
| needs: change-detection | |
| if: fromJSON(needs.change-detection.outputs.run-python-tests) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runs-on: [ubuntu-24.04, macos-15, windows-2025] | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11 | |
| with: | |
| runs-on: ${{ matrix.runs-on }} | |
| python-coverage: | |
| name: π Coverage | |
| needs: [change-detection, python-tests] | |
| if: fromJSON(needs.change-detection.outputs.run-python-tests) | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-coverage.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11 | |
| permissions: | |
| contents: read | |
| id-token: write | |
| python-linter: | |
| name: π Lint | |
| needs: change-detection | |
| if: fromJSON(needs.change-detection.outputs.run-python-tests) | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-linter.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11 | |
| with: | |
| enable-ty: true | |
| enable-mypy: false | |
| build-sdist: | |
| name: π CD | |
| needs: change-detection | |
| if: fromJSON(needs.change-detection.outputs.run-cd) | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11 | |
| build-wheel: | |
| name: π CD | |
| needs: change-detection | |
| if: fromJSON(needs.change-detection.outputs.run-cd) | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11 | |
| # this job does nothing and is only used for branch protection | |
| required-checks-pass: | |
| name: π¦ Check | |
| if: always() | |
| needs: | |
| - change-detection | |
| - python-tests | |
| - python-coverage | |
| - python-linter | |
| - build-sdist | |
| - build-wheel | |
| runs-on: ubuntu-slim | |
| steps: | |
| - name: Decide whether the needed jobs succeeded or failed | |
| uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 | |
| with: | |
| allowed-skips: >- | |
| ${{ | |
| fromJSON(needs.change-detection.outputs.run-python-tests) | |
| && '' || 'python-tests,python-coverage,python-linter,' | |
| }} | |
| ${{ | |
| fromJSON(needs.change-detection.outputs.run-cd) | |
| && '' || 'build-sdist,build-wheel,' | |
| }} | |
| jobs: ${{ toJSON(needs) }} |