forked from key4hep/k4geo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre-commit check-xml test (key4hep#300)
* add pre-commit check-xml test * make SiD pass check-xml * make IDEA pass check-xml * make CLD pass check-xml * make example pass check-xml
- Loading branch information
Showing
21 changed files
with
148 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: pre-commit | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cvmfs-contrib/[email protected] | ||
- uses: aidasoft/run-lcg-view@v4 | ||
with: | ||
release-platform: LCG_101/x86_64-centos7-clang12-opt | ||
run: | | ||
export PYTHONPATH=$(python -m site --user-site):$PYTHONPATH | ||
export PATH=/root/.local/bin:$PATH | ||
pip install --upgrade --user pip | ||
pip install pre-commit --user | ||
# Use virtualenv from the LCG release | ||
pip uninstall --yes virtualenv | ||
pre-commit run --show-diff-on-failure \ | ||
--color=always \ | ||
--all-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.