Skip to content

Bump pylint from 2.17.7 to 3.0.3 #370

Bump pylint from 2.17.7 to 3.0.3

Bump pylint from 2.17.7 to 3.0.3 #370

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
# https://github.com/actions/python-versions/blob/main/versions-manifest.json
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.8.0
with:
python-version: ${{ matrix.python-version }}
# https://github.com/actions/cache/blob/main/examples.md#using-pip-to-get-cache-location
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt', '**/setup.py') }}
restore-keys: |
${{ runner.os }}-python-
- name: Install dependencies
run: |
sudo apt install libarchive-dev
python -m pip install --upgrade pip wheel
pip install -e .[dev]
- name: Lint with pylint
run: make lint
- name: Test with pytest
run: make coverage
# https://coveralls-python.readthedocs.io/en/latest/usage/index.html
# upload coverage report for just one of Python version matrix runs
- name: Upload coverage report to Coveralls
if: matrix.python-version == '3.9'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github