Fix the division in the hits@k metric to use the size of the relevant_items #171
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: 'latest' | |
python-version: 3.10.0 | |
activate-environment: rexmex-ci | |
- run: conda --version | |
- run: which python | |
- name: Run installation. | |
run: | | |
pip install codecov | |
pip install pytest | |
pip install tox | |
python setup.py install | |
- name: Run code quality tests | |
run: | | |
tox -e flake8 | |
- name: Run type checking | |
run: | | |
tox -e mypy | |
- name: Install main package | |
run: | | |
pip install -e .[test] | |
- name: Run test-suite | |
run: | | |
python -m pytest | |
- name: Generate coverage report | |
if: success() | |
run: | | |
pip install coverage | |
coverage run -m pytest | |
coverage xml | |
- name: Upload coverage report to codecov | |
uses: codecov/codecov-action@v1 | |
if: success() | |
with: | |
file: coverage.xml |