Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
thodkatz committed Oct 11, 2024
1 parent a43f387 commit 798b513
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 7 additions & 6 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,16 @@ jobs:
environment-file: environment.yml
channel-priority: flexible
miniforge-variant: Miniforge3
- name: Get the latest commit hash and target ref
run: |
echo "COMMIT_HASH=$(git log -1 --format='%H')" >> $GITHUB_ENV
echo "REF=${{ github.event.pull_request.base.ref || github.ref_name }}" >> $GITHUB_ENV
- name: Run Pre-Commit
run: |
echo $BRANCH_NAME
echo ${{ github.event.pull_request.base.ref }}
echo ${{ github.event.pull_request.head.sha }}
echo $REF
echo $COMMIT_HASH
git fetch origin
pre-commit run --from-ref origin/${{ github.event.pull_request.base.ref }} --to-ref ${{ github.event.pull_request.head.sha }}
pre-commit run --from-ref origin/$REF --to-ref $COMMIT_HASH
test-dev:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ requirements:
host:
- pip
- python >=3.8
- setuptools >=40.0
- setuptools_scm
run:
- python >=3.8
{% for dep in setup_py_data['install_requires'] %}
Expand Down

0 comments on commit 798b513

Please sign in to comment.