Skip to content

Commit

Permalink
Remove unneeded matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Mellor <[email protected]>
  • Loading branch information
hmellor committed Jan 13, 2025
1 parent 254a767 commit be54e28
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,30 @@ on:
jobs:
pre-commit:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}
python-version: 3.12
- run: echo "::add-matcher::.github/workflows/matchers/actionlint.json"
- name: All hooks except mypy
if: ${{ matrix.python-version == '3.12' }}
env:
SKIP: mypy
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
- run: echo "::add-matcher::.github/workflows/matchers/mypy.json"
- name: mypy
- name: mypy (3.9)
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
with:
extra_args: mypy --all-files
extra_args: mypy --python-version 3.9 --all-files
- name: mypy (3.10)
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
with:
extra_args: mypy --python-version 3.10 --all-files
- name: mypy (3.11)
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
with:
extra_args: mypy --python-version 3.11 --all-files
- name: mypy (3.12)
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
with:
extra_args: mypy --python-version 3.12 --all-files

0 comments on commit be54e28

Please sign in to comment.