mirror of
https://github.com/iluvcapra/mfbatch.git
synced 2025-12-31 17:00:50 +00:00
29 lines
675 B
YAML
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
|
|
|