Skip to content

[ci] Add more Python versions for checks #44

[ci] Add more Python versions for checks

[ci] Add more Python versions for checks #44

Workflow file for this run

# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Check
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.9.25', '3.10.19', '3.11.14', '3.12.12', '3.13.9', '3.14.0' ]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y wamerican
python -m pip install --upgrade pip
pip install flake8 twine wheel tox build
pip install -r requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Build and check package
run: make check
- name: Build and check zipapp
run: |
make zipapp
build/keybox.pyz pwgen
- name: Build docs
run: make -C docs html
- name: Test with pytest
run: make test
- name: Test coverage
run: make cov
- name: Check package with tox
run: tox