Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmasuch committed Aug 18, 2024
1 parent 77b80c1 commit 2226059
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
- name: Install Rye
uses: eifinger/setup-rye@v4
- name: Install dependencies
run: | # abort if the lockfile changes
run: |
rye sync
echo "Checking if requirements.lock has changed"
git diff requirements.lock
git diff --stat requirements.lock
# [[ -n $(git diff --stat requirements.lock) ]] && exit 1
if [[ -n $(git diff --stat requirements.lock) ]]; then
echo "requirements.lock has changed. Exiting the workflow."
echo "Please run 'rye sync' locally and push the updated lockfile."
exit 1
fi
- name: Run linters
run: rye lint

Expand All @@ -32,10 +33,12 @@ jobs:
- name: Install Rye
uses: eifinger/setup-rye@v4
- name: Install dependencies
run: | # abort if the lockfile changes
run: |
rye sync
echo "Checking if requirements.lock has changed"
git diff requirements.lock
# [[ -n $(git diff --stat requirements.lock) ]] && exit 1
if [[ -n $(git diff --stat requirements.lock) ]]; then
echo "requirements.lock has changed. Exiting the workflow."
echo "Please run 'rye sync' locally and push the updated lockfile."
exit 1
fi
- name: Run tests
run: rye test

0 comments on commit 2226059

Please sign in to comment.