Skip to content

WIP: CI 12

WIP: CI 12 #104

Workflow file for this run

name: lint
on:
push:
paths-ignore:
- .github/appveyor.yml
# tags:
# - '*'
pull_request:
# on pull, automatic
workflow_dispatch:
# allow manual trigger
permissions:
contents: read # to fetch code (actions/checkout)
env:
# note that some tools care only for the name, not the value
FORCE_COLOR: 1
jobs:
lint:
name: ${{ matrix.toxenv }} / ${{ matrix.os }} / ${{ matrix.python-version }}
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
timeout-minutes: 4
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
toxenv: [lint, docs-lint, pycodestyle, format, mypy]
python-version: [ "3.10" ]
os: ["ubuntu-latest"]
include:
- os: ubuntu-latest
python-version: "3.12"
toxenv: null
- os: windows-latest
python-version: "3.12"
toxenv: format
- os: macos-latest
python-version: "3.12"
toxenv: docs-lint
steps:
- uses: actions/checkout@v4
- name: Using Python ${{ matrix.python-version }}
if: ${{ matrix.toxenv }}
uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: "Install Dependencies (cache hit: ${{ steps.setup-python.outputs.cache-hit }})"
if: ${{ matrix.toxenv }}
run: |
python -m pip install --upgrade pip
python -m pip install tox
- run: tox -e ${{ matrix.toxenv }}
if: ${{ matrix.toxenv }}
- name: "Lint support files"
if: ${{ ! matrix.toxenv }}
# not enforced, for now
continue-on-error: true
env:
# annoying results for pl_PL and fr_FR.. still the oly *obvious* choice
LC_ALL: C
run: |
tail +6 THANKS | sort --ignore-case --check
sort --check .gitignore