modify python version for check py lint #4
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: python static checks and tests | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
testing: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.12.7 | |
architecture: x64 | |
- name: Install Flake8 | |
run: pip install flake8 | |
- name: Run Flake8 | |
run: flake8 | |
- name: Install Pylint | |
run: pip install pylint | |
- name: Run Pylint | |
run: find . -name "*.py" | xargs pylint --output-format=colorized | |
- name: Install Black | |
run: pip install black | |
- name: Run Black | |
run: find . -name "*.py" | xargs black --check | |
- name: Install dependencies | |
run: pip install apache-airflow pytest | |
- name: Test DAG integrity | |
run: pytest airflow/chap9/tests/ |