Skip to content

Adding CI/CD workflows and scaffolding testing #1

Adding CI/CD workflows and scaffolding testing

Adding CI/CD workflows and scaffolding testing #1

Workflow file for this run

name: Python CI
on:
push:
branches:
- dev
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pytest ./server/tests/
lint_with_black:
name: runner / black formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rickstaa/action-black@v1
security_check:
name: Run security checks with Bandit
runs-on: ubuntu-latest
steps:
- uses: mdegis/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
path: "."
level: high
confidence: high
exit_zero: true