-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (40 loc) · 1.25 KB
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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]"
pip install ".[api]"
- 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")