Skip to content

Commit

Permalink
Add a header check to the CI Fix rucio#4980
Browse files Browse the repository at this point in the history
The `add_header` script needs to be run after an edit to determine the status of
the header and, if necessary, change the header.

This commit adds the check for the header to the CI/CD. This enforces the usage
of the `add_header` script and ensures a healthy code base.
  • Loading branch information
Joel Dierkes committed Dec 13, 2021
1 parent 12b5609 commit 45406d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/autotest.yml
Expand Up @@ -5,7 +5,16 @@ on:
- push

jobs:
add_header_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: |
tools/add_header --disable-add-me -cd -- bin/* $(find . -type f -name '*.py')
setup:
needs: add_header_test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 45406d3

Please sign in to comment.