Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Oct 30, 2024
1 parent f975b51 commit b05d4f6
Showing 1 changed file with 28 additions and 24 deletions.
52 changes: 28 additions & 24 deletions .github/workflows/python-cqa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,33 @@ jobs:
precommit_hooks:
runs-on: ubuntu-latest
strategy:
matrix:
hook:
- cmd: "end-of-file-fixer"
- cmd: "trailing-whitespace"
- cmd: "mixed-line-ending"
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-precommit-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Update pip and setuptools
run: |
python -m pip install --upgrade pip setuptools
- name: Install dependencies
run: |
pip install -e .[dev]
- name: Run pre-commit ${{ matrix.hook.cmd }} hook
run: pre-commit run ${{ matrix.hook.cmd }} --all-files
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
# strategy:
# matrix:
# hook:
# - cmd: "end-of-file-fixer"
# - cmd: "trailing-whitespace"
# - cmd: "mixed-line-ending"
# steps:
# - uses: actions/checkout@v4
# - uses: actions/cache@v4
# with:
# path: ~/.cache/pip
# key: ${{ runner.os }}-pip-precommit-${{ hashFiles('pyproject.toml') }}
# restore-keys: |
# ${{ runner.os }}-pip-
# - name: Set up Python 3.12
# uses: actions/setup-python@v5
# with:
# python-version: 3.12
# - name: Update pip and setuptools
# run: |
# python -m pip install --upgrade pip setuptools
# - name: Install dependencies
# run: |
# pip install -e .[dev]
# - name: Run pre-commit ${{ matrix.hook.cmd }} hook
# run: pre-commit run ${{ matrix.hook.cmd }} --all-files

0 comments on commit b05d4f6

Please sign in to comment.