Set python version for the linting checks #4
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: "." | |
python_version: 3.12.8 | |
testing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pytest | |
uses: microsoft/[email protected] | |
with: | |
pytest: true | |
testdir: "tests" | |
python_version: 3.12.8 |