Data Carousel: Fix to submit request for existing rule, set default rule lifetime, phase out Staging activity #173
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: Syntax Check | |
| on: [pull_request] | |
| jobs: | |
| check-syntax: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Check syntax of changed files | |
| run: | | |
| files=$(git diff --name-only origin/master...HEAD -- '*.py') | |
| if [ -n "$files" ]; then | |
| echo "$files" | xargs -n1 python -m py_compile | |
| else | |
| echo "No Python files changed." | |
| fi |