Added functionality to model.py and opnmf.py to run out-of-sample OPNMF. #26
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: Run Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.6, 3.7, 3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r test-requirements.txt | |
pip install -r requirements.txt | |
- name: Install opnmf | |
shell: bash -el {0} | |
run: | | |
python setup.py build | |
python setup.py install | |
- name: Lint with flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --show-source --statistics | |
- name: Spell check | |
run: | | |
codespell opnmf/ docs/ examples/ | |
- name: Test with pytest | |
run: | | |
PYTHONPATH="." pytest --cov=opnmf --cov-report xml -vv opnmf/ | |
- name: 'Upload coverage to CodeCov' | |
uses: codecov/codecov-action@master | |
if: success() && matrix.python-version == 3.8 |