gateway: bump peter-evans/create-or-update-comment from 2.0.0 to 4.0.0 #71
Workflow file for this run
This file contains hidden or 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: Linting and MyPy (Pelican) | |
on: | |
push: | |
paths: | |
- '**.py' | |
- '**/linting.yml' | |
- '**/pylintrc' | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Set up Python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
pip list | |
cd pelican | |
pip install -r requirements.txt --no-deps # Explicit dependency-only installation | |
pip install mypy types-PyYAML types-requests types-beautifulsoup4 types-markdown pylint | |
pip list | |
- name: Type testing with mypy | |
run: | | |
cd pelican | |
mypy --cache-dir /tmp/ --install-types --non-interactive | |
mypy --cache-dir /tmp/ --ignore-missing-imports . | |
- name: Code linting with pylint | |
run: | | |
cd pelican | |
pylint **/*.py |