Skip to content

Pin GitHub Actions to full-length commit SHAs #179

Pin GitHub Actions to full-length commit SHAs

Pin GitHub Actions to full-length commit SHAs #179

Workflow file for this run

name: Pylint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint
pip install pyright
- name: Analyzing the code with pylint
run: |
pylint $(git ls-files '*.py')
- name: Analyzing the code with pyright
run: |
pyright