3: city temperature #6
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: Lint Python Code | |
on: | |
- push | |
- workflow_dispatch | |
jobs: | |
run_python_linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Python 3 | |
run: | | |
sudo apt update | |
sudo apt install python3-pip | |
- name: Install dependencies | |
run: cd app && pip install -r requirements.txt | |
- name: Install linter | |
run: pip install pylint | |
- name: Run linter | |
run: cd app && pylint *.py |