Skip to content

Commit

Permalink
Fix pre-commit ci action
Browse files Browse the repository at this point in the history
  • Loading branch information
thodkatz committed Sep 17, 2024
1 parent aad473a commit b6d7ae3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
defaults:
run:
shell: bash -l {0}
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -28,13 +26,14 @@ jobs:
environment-file: environment.yml
channel-priority: flexible
miniforge-variant: Miniforge3
- name: Get the latest commit hash
run: |
echo "COMMIT_HASH=$(git log -1 --format='%H')" >> $GITHUB_ENV
- name: Run Pre-Commit
run: |
echo $BRANCH_NAME
echo ${{ github.event.pull_request.base.ref }}
echo ${{ github.event.pull_request.head.sha }}
git fetch origin
pre-commit run --from-ref origin/${{ github.event.pull_request.base.ref }} --to-ref ${{ github.event.pull_request.head.sha }}
echo ${{ github.ref_name }}
echo $COMMIT_HASH
pre-commit run --from-ref ${{ github.ref_name }} --to-ref $COMMIT_HASH
test-dev:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ test:
- python 3.9.*
- pytest
- pytest-grpc
- pytest-timeout
- cpuonly
- ilastik-pytorch-version-helper-cpu
imports:
Expand Down

0 comments on commit b6d7ae3

Please sign in to comment.