Files
mfbatch/.github/workflows/pylint.yml
Jamie Hardt 11405ef06c Update pylint.yml
Added 3.12 to the test matrix
2024-07-07 22:22:00 -07:00

29 lines
675 B
YAML

name: Lint and Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install tqdm
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
- name: Testing with unittest
run: |
python -m unittest tests