Skip to content

test(test_evaluation_methods): create mock test for qq-plot evaluatio… #8

test(test_evaluation_methods): create mock test for qq-plot evaluatio…

test(test_evaluation_methods): create mock test for qq-plot evaluatio… #8

Workflow file for this run

name: Continuous Integration
on:
workflow_dispatch:
push:
branches:
- "feature/**/**"
- "fix/**/**"
- "release/v*.*.*"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install package and dependencies
run: |
python3 -m pip install --upgrade pip setuptools wheel
pip3 install -e .
code-quality:
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install linting dependencies
run: |
python3 -m pip install --upgrade pip setuptools wheel
pip3 install -e .[codequality,extra]
- name: Lint with Black
run: black --config=pyproject.toml .
- name: Lint with Isort
run: isort --settings-path=pyproject.toml .
- name: Lint with MyPy
run: mypy --config-file=pyproject.toml --pretty .
test:
needs: code-quality
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install package and dependencies
run: |
python3 -m pip install --upgrade pip setuptools wheel
pip3 install -e .[security,testcov,extra]
- name: Test application's vulnerability with bandit
run: bandit -c pyproject.toml -r .
- name: Test with Pytest-Cov
run: |
pytest --cov --cov-report xml .
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
flags: anomalytics
name: codecov-umbrella
verbose: true