chore: clean tweaks #73
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: CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up Python 3 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint pytest mypy | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Analysing the code with pylint | |
run: | | |
pylint $(git ls-files '*.py') | |
- name: Type Chescking the code with mypy | |
run: | | |
mypy $(git ls-files '*.py') | |
- name: Testing with pytest | |
run: | | |
pytest |