Skip to content

Removed unused imports #59

Removed unused imports

Removed unused imports #59

Workflow file for this run

name: Test
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
workflow_dispatch:
jobs:
test:
strategy:
matrix:
os: [ 'ubuntu-20.04', 'windows-2019', 'macos-12' ]
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: pipx install poetry
- name: Configure Poetry
run: |
poetry env use ${{ matrix.python-version }}
poetry --version
poetry env info
- name: Install dependencies
run: poetry install --with dev,llm
- name: Run tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: poetry run pytest --cov=sigmaiq --cov-report term --cov-report xml:cov.xml -vv
- name: Store coverage for badge
if: ${{ runner.os == 'Linux' }}
run: poetry run python print-coverage.py >> $GITHUB_ENV
- name: Create coverage badge
if: ${{ github.repository == 'AttackIQ/SigmAIQ' && github.event_name == 'push' && runner.os == 'Linux' }}
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: f6d72f7ec2b300546a114fd80d371f7e
filename: slincoln-aiq-SigmAIQ.json
label: Coverage
message: ${{ env.COVERAGE }}
color: ${{ env.COVERAGE_COLOR }}