Skip to content

[.github/workflows/python-package.yml] Try alternative image for 2.7 … #47

[.github/workflows/python-package.yml] Try alternative image for 2.7 …

[.github/workflows/python-package.yml] Try alternative image for 2.7 … #47

name: Python lint & test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
container: coatldev/six:latest
strategy:
matrix:
python-version: [ 2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10', 3.11, 3.12, 3.13 ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt
- name: Lint with flake8
run: |
python -m pip install flake8
flake8 . --count --select=$(printf '%s,' {A..Z}) --ignore='W503,E203' --show-source --max-complexity=13 --max-line-length=119 --statistics
- name: Test with unittest
run: |
python setup.py test