fix: changed sparse to sparse_output because of deprecation #298
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: check | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- develop | |
- 'feature/**' | |
workflow_dispatch: | |
env: | |
PROJECT_NAME: psyki-python | |
WORKFLOW: check | |
jobs: | |
run-unit-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
python-version: | |
- '3.9.12' | |
- '3.9.13' | |
runs-on: ${{ matrix.os }} | |
name: Run tests on Python ${{ matrix.python-version }}, on ${{ matrix.os }} | |
timeout-minutes: 60 | |
concurrency: | |
group: ${{ github.workflow }}-run-unit-tests-${{ matrix.python-version }}-${{ matrix.os }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Restore Python dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Download datasets | |
run: python -m setup download_datasets | |
- name: Generate coverage report | |
run: | | |
pip install pytest | |
pip install pytest-cov | |
pytest --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./coverage/reports/ | |
env_vars: OS,PYTHON | |
fail_ci_if_error: true | |
files: ./coverage.xml | |
flags: unittests | |
name: codecov-umbrella | |
verbose: false |