Skip to content

updated all likelihoods #259

updated all likelihoods

updated all likelihoods #259

name: Test and publish library
on: push
jobs:
build-n-publish:
name: Test and publish
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install pypa/build
run: |
echo 'Installing pip...'
pip install --upgrade pip
python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: |
echo 'Building python library...'
python -m build
pip install -e .
- name: Run tests
run: |
it=100 coverage run -m unittest linfa.linfa_test_suite.trivial_example
it=100 coverage run -m unittest linfa.linfa_test_suite.highdim_example
it=100 coverage run -m unittest linfa.linfa_test_suite.rc_example
it=100 coverage run -m unittest linfa.linfa_test_suite.rcr_example
it=100 coverage run -m unittest linfa.linfa_test_suite.adaann_example
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: desResLab/LINFA
- name: Publish to PyPI
# if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}