Skip to content

Commit

Permalink
Fixed pre-commit Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobrepucci committed Jan 16, 2024
1 parent 9e0efe2 commit 944a627
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/github_action_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
branches: [main, next, version_issues]

jobs:
pre-commit:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]

test:
runs-on: ${{ matrix.os }}
defaults:
Expand All @@ -31,14 +38,6 @@ jobs:
- name: Install requirements
run: |
pip3 install -r requirements.txt
- name: Run pre-commit
run: |
cd src/multivelo
git add .
pre-commit run --verbose --color=always --show-diff-on-failure \
--files src/multivelo/auxiliary.py \
src/multivelo/dynamical_chrom_func.py \
src/multivelo/steady_chrom_func.py
- name: Test with pytest
run: |
pip3 install -e .
Expand Down

0 comments on commit 944a627

Please sign in to comment.