Skip to content

Set up continuous integration for all branches to run linters and tests #1

Set up continuous integration for all branches to run linters and tests

Set up continuous integration for all branches to run linters and tests #1

name: Python Continous Integration
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
release:
types: [created]
workflow_dispatch:
jobs:
linting:
runs-on: ubuntu-latest
strategy:
matrix:
tools: ["black", "bandit", "pylint", "flake8"]
steps:
- uses: actions/checkout@v4
- name: ${{ matrix.tools }}
uses: microsoft/[email protected]
with:
${{ matrix.tools }}: true
args: ${{ matrix.args }}
workdir: "."
testing:
runs-on: ubuntu-latest
steps:
- name: Pytest
uses: microsoft/[email protected]
with:
testing: true