Make the service throw when asked for the same ID twice #1037
Workflow file for this run
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
name: pre-commit | |
on: [push, pull_request] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cvmfs-contrib/github-action-cvmfs@v3 | |
- uses: aidasoft/run-lcg-view@v4 | |
with: | |
container: el9 | |
view-path: /cvmfs/sw-nightlies.hsf.org/key4hep | |
run: | | |
export PYTHONPATH=$(python -m site --user-site):$PYTHONPATH | |
export PATH=/root/.local/bin:$PATH | |
# Newer versions of git are more cautious around the github runner | |
# environment and without this git rev-parse --show-cdup in pre-commit | |
# fails | |
git config --global --add safe.directory $(pwd) | |
pip install pre-commit | |
pre-commit run --show-diff-on-failure \ | |
--color=always \ | |
--all-files |