-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (41 loc) · 1.4 KB
/
workflow.yml
File metadata and controls
43 lines (41 loc) · 1.4 KB
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
43
name: Tests
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10', '3.11', '3.12' ]
java-version: [ 17 ]
maven-version: [ '3.8.6' ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK + Maven version
uses: s4u/setup-maven-action@v1.4.0
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 --upgrade pip
pip install .
pip install ".[dev]"
pip install ".[api]"
# Extras extra removed; keep AIX360-only deps out of the default install
- name: Lint
run: |
pylint --ignore-imports=yes $(find src/trustyai -type f -name "*.py" | grep -v "/extras/")
- name: Test with pytest
run: |
pytest -v -s tests/general
# pytest -v -s tests/extras # Extras-only deps not installed in CI
pytest -v -s tests/initialization --forked
- name: Style
run: |
black --check $(find src/trustyai -type f -name "*.py")