Update README.md #1407
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: Workflow for Codecov | |
on: [push] | |
jobs: | |
run: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] # macos-latest, windows-latest | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON: '3.12' | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.12 | |
- name: Generate coverage report | |
run: | | |
pip install -r requirements.txt | |
pip install -U scikit-learn | |
pip install pytest-cov | |
pip install build | |
python3 -m build | |
pip install setuptools | |
python setup.py build_ext --inplace | |
pytest unittests.py --cov=classix | |
coverage xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |