Skip to content

QOL GitHub Actions

QOL GitHub Actions #1

Workflow file for this run

name: Python Linting
on:
pull_request:
push:
branches: [main, dev]
jobs:
#----------------------------------------------
# Cache Virtual Environment
#----------------------------------------------
venv-setup:
name: Cache Venv
uses: ./.github/workflows/cache_venv.yml

Check failure on line 14 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint.yml

Invalid workflow file

error parsing called workflow ".github/workflows/lint.yml" -> "./.github/workflows/cache_venv.yml" : failed to fetch workflow: workflow was not found.
with:
command: |
python -m pip list
python --version
echo "Successfully setup venv"
#----------------------------------------------
# Run Black
#----------------------------------------------
black:
name: Black
needs: venv-setup
uses: ./.github/workflows/cache_venv.yml
with:
command: python -m black --check .
#----------------------------------------------
# Run Isort
#----------------------------------------------
isort:
name: isort
needs: venv-setup
uses: ./.github/workflows/cache_venv.yml
with:
command: python -m isort --check-only .
# #----------------------------------------------
# # Run Mypy
# #----------------------------------------------
# mypy:
# name: MyPy
# needs: venv-setup
# uses: ./.github/workflows/cache_venv.yml
# with:
# command: python -m mypy .
#----------------------------------------------
# Run Flake8
#----------------------------------------------
flake8:
name: Flake8
needs: venv-setup
uses: ./.github/workflows/cache_venv.yml
with:
command: python -m flake8 .