Flake8 Lint #8
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: Flake8 Lint | |
run-name: Flake8 Lint | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
lint: | |
name: Lint Codebase | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
run: | | |
sudo add-apt-repository ppa:deadsnakes/ppa | |
sudo apt-get update | |
sudo apt-get install python3.10 -y | |
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 | |
sudo update-alternatives --set python3 /usr/bin/python3.10 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 | |
- name: Run Flake8 | |
run: | | |
python -m flake8 |