Skip to content

ci: split lint workflow to test multiple python versions #26

ci: split lint workflow to test multiple python versions

ci: split lint workflow to test multiple python versions #26

Workflow file for this run

name: lint
on:
push:
paths:
- '**.py'
- 'pyproject.toml'
- 'pylintrc'
- '.github/workflows/**.yml'
pull_request:
paths:
- '**.py'
- 'pyproject.toml'
- 'pylintrc'
- '.github/workflows/**.yml'
jobs:
pylint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# minimum + latest
ver: ['3.8', '3.12']
container:
image: python:${{ ver }}-slim

Check failure on line 27 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / lint

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 27, Col: 14): Unrecognized named-value: 'ver'. Located at position 1 within expression: ver .github/workflows/lint.yml (Line: 28, Col: 11): Unrecognized named-value: 'ver'. Located at position 1 within expression: ver
name: "pylint (Python ${{ ver }})"
steps:
- uses: actions/checkout@v3
- name: Install deps
run: |
pip install -e .
pip install pylint
- name: Lint
run: |
for mod in secretlounge_ng util; do
pylint --fail-under=0 --fail-on=E "$mod"
done