Skip to content

Fix lint: ruff clean on demo + red team scripts, remove unused imports #47

Fix lint: ruff clean on demo + red team scripts, remove unused imports

Fix lint: ruff clean on demo + red team scripts, remove unused imports #47

Workflow file for this run

name: Nexus CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install ruff
run: pip install ruff>=0.8.0
- name: Run ruff check
run: ruff check .
- name: Run ruff format check
run: ruff format --check .
test:
name: Test
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: pytest -v --tb=short --timeout=30