Add support for python 3.12 and 3.13 and drop support for 3.7 (#1950) #1223
This file contains hidden or 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: copyright | |
on: | |
pull_request: | |
paths: | |
- 'src/**' | |
- '!**.md' | |
push: | |
paths: | |
- 'src/**' | |
- '!**.md' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
main: | |
name: Enforce copyright notices | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
- name: Set up Python | |
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | |
with: | |
python-version: 3 | |
- name: Run copyright checker | |
run: | | |
bash ./src/build_utils/license/apply_copyright | |
if [[ "$(git status | grep modified)" != "" ]]; then | |
echo "Some sourcefiles are missing copyright notice!" 1>&2 | |
echo "Run ./src/build_utils/license/apply_copyright to apply." 1>&2 | |
exit 1 | |
fi |