warning elimination and test coverage increase #165
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: CodeCov | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Test python API | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install requirements | |
run: | |
pip install -r requirements.txt | |
pip install pytest-cov | |
- name: Run tests and collect coverage | |
run: pytest --cov=smote_variants tests | |
- name: Upload coverage reports to Codecov | |
run: | |
# Replace `linux` below with the appropriate OS | |
# Options are `alpine`, `linux`, `macos`, `windows` | |
curl -Os https://uploader.codecov.io/latest/linux/codecov; | |
chmod +x codecov; | |
./codecov |