Set up continuous integration for all branches to run linters and tests #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |