Skip to content

issue #2649: migrate metrics validation suite from service to Python #860

issue #2649: migrate metrics validation suite from service to Python

issue #2649: migrate metrics validation suite from service to Python #860

Workflow file for this run

name: Tests
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8, 3.9 ]
java-version: [ 11, 17 ]
maven-version: [ '3.8.6' ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK + Maven version
uses: s4u/[email protected]
with:
java-version: ${{ matrix.java-version }}
maven-version: ${{ matrix.maven-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build explainability-core
uses: ./.github/actions/build-core
- name: Install TrustyAI Python package
run: |
pip install .
pip install ".[dev]"
pip install ".[extras]"
- name: Lint
run: |
pylint --ignore-imports=yes $(find src/trustyai -type f -name "*.py")
- name: Test with pytest
run: |
pytest -v -s tests/general
pytest -v -s tests/extras
pytest -v -s tests/initialization --forked
- name: Style
run: |
black --check $(find src/trustyai -type f -name "*.py")