Skip to content

Commit

Permalink
Explicitly install git and write out pre-commit.log
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Jan 11, 2024
1 parent 8c2d5b7 commit 9a28486
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ jobs:
with:
python-version: "3.10"

- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y git

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -113,10 +116,16 @@ jobs:
run: |
if [ -z "$(git status --porcelain tests)" ]; then
echo "Turtle Canon didn't canonize any files under tests/ !"
echo "pre-commit log:"
cat "/home/runner/.cache/pre-commit/pre-commit.log"
exit 1
fi
if [ -n "$(git status --porcelain tests/static/rdflib_canonized)" ]; then
echo "Turtle Canon canonized already canonized files under tests/static/rdflib_canonized !"
echo "pre-commit log:"
cat "/home/runner/.cache/pre-commit/pre-commit.log"
exit 1
fi
Expand Down

0 comments on commit 9a28486

Please sign in to comment.