Skip to content

Python CI

Python CI #2599

Workflow file for this run

name: Python CI
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 18 * * *'
jobs:
lint:
name: lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- {command: flake8, args: ""}
- {command: black, args: "--check --diff ."}
- {command: isort, args: ". --check --diff"}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
cache: 'pip'
cache-dependency-path: '**/pyproject.toml'
- name: Install
run: pip install ${{matrix.command}}
- name: Run ${{matrix.command}}
run: ${{matrix.command}} ${{matrix.args}}