Skip to content

Commit

Permalink
Update pre-commit-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitra-Kyriakopoulou authored Nov 16, 2024
1 parent 3f57201 commit 0254ed0
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/pre-commit-check.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
name: Run pre-commit check
on:
- push
- pull_request

- push
- pull_request
jobs:
check:
runs-on: ubuntu-latest
name: pre-commit
steps:
# Step 1: Checkout the code
- uses: actions/checkout@v4

# Step 2: Set up Conda environment
- uses: conda-incubator/setup-miniconda@v3
with:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: pre-commit-env
environment-file: pre-commit-environment.yml
auto-activate-base: false

# Step 3: Run pre-commit hooks using the latest version
- name: Run pre-commit checks
uses: pre-commit/[email protected]
with:
extra_args: '--all-files'
- uses: pre-commit/action@latest

0 comments on commit 0254ed0

Please sign in to comment.