Skip to content

tox: fix pylint to v3.2.5 #6

tox: fix pylint to v3.2.5

tox: fix pylint to v3.2.5 #6

Workflow file for this run

name: Build
on:
push:
branches:
- main
paths:
- '.github/workflows/build.yml'
- 'fetchdep/**'
- 'tests/**'
- '.pylintrc'
- 'MANIFEST.in'
- 'pyproject.toml'
- 'ruff.toml'
- 'setup.cfg'
- 'setup.py'
- 'tox.ini'
pull_request:
branches:
- main
paths:
- '.github/workflows/build.yml'
- 'fetchdep/**'
- 'tests/**'
- '.pylintrc'
- 'MANIFEST.in'
- 'pyproject.toml'
- 'ruff.toml'
- 'setup.cfg'
- 'setup.py'
- 'tox.ini'
workflow_dispatch:
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
PIP_NO_PYTHON_VERSION_WARNING: 1
jobs:
build:
name: Build (${{ matrix.toxenv }})
runs-on: ${{ matrix.os }}
container:
image: ${{ matrix.img }}
strategy:
matrix:
include:
- { os: ubuntu-latest, img: "python:2.7-slim", python: "2.7", toxenv: py27, cache: ~/.cache/pip }
- { os: ubuntu-latest, img: "python:3.5-slim", python: "3.5", toxenv: py35, cache: ~/.cache/pip }
- { os: ubuntu-latest, img: "python:3.6-slim", python: "3.6", toxenv: py36, cache: ~/.cache/pip }
- { os: ubuntu-latest, img: "python:3.7-slim-bullseye", python: "3.7", toxenv: py37, cache: ~/.cache/pip }
- { os: ubuntu-latest, img: "python:3.8-slim", python: "3.8", toxenv: py38, cache: ~/.cache/pip }
- { os: ubuntu-latest, img: "python:3.9-slim", python: "3.9", toxenv: py39, cache: ~/.cache/pip }
- { os: ubuntu-latest, img: "python:3.10-slim", python: "3.10", toxenv: py310, cache: ~/.cache/pip }
- { os: ubuntu-latest, img: "python:3.11-slim", python: "3.11", toxenv: py311, cache: ~/.cache/pip }
- { os: ubuntu-latest, img: "python:3.12-slim", python: "3.12", toxenv: py312, cache: ~/.cache/pip }
- { os: macos-latest, python: "3.12", toxenv: py312, cache: ~/Library/Caches/pip }
- { os: windows-latest, python: "3.12", toxenv: py312, cache: ~\AppData\Local\pip\Cache }
- { os: ubuntu-latest, img: "python:3.12-slim", toxenv: pylint, cache: ~/.cache/pip }
- { os: ubuntu-latest, img: "python:3.12-slim", toxenv: ruff, cache: ~/.cache/pip }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
if: ${{ matrix.img == '' }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Cache pip
uses: actions/cache@v4
id: cache-pip
with:
path: ${{ matrix.cache }}
key: ${{ matrix.os }}-${{ matrix.python }}-pip
- name: Setup container cache ownership
if: ${{ matrix.img != '' }}
run: |
mkdir -p ~/.cache
chown -R $(id -u) ~/.cache
- name: Install dependencies
run: python -m pip install --upgrade tox
- name: tox
env:
TOXENV: ${{ matrix.toxenv }}
run: tox