Skip to content

fix: github actions code-scan & add build-packages #2

fix: github actions code-scan & add build-packages

fix: github actions code-scan & add build-packages #2

Workflow file for this run

name: code-scan
on:
push:
branches:
- main
pull_request:
jobs:
code-scan:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install --no-cache-dir -U pip . black flake8 bandit
- name: Lint with flake8
run: flake8 pythonrunner
- name: Check with black
run: black --check pythonrunner
- name: Check with bandit
run: bandit -r pythonrunner