Update Ubuntu version from 20.04 to 22.04 #852
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |