Unit Tests #78
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
# workflows to do unit-tests | |
name: Unit Tests | |
on: | |
schedule: | |
# Nightly build at 3:42 A.M. | |
- cron: "42 3 */1 * *" | |
push: | |
branches: | |
- main | |
# Release branches | |
- "[0-9]+.[0-9]+.X" | |
pull_request: | |
branches: | |
- main | |
- "[0-9]+.[0-9]+.X" | |
release: | |
types: [published] | |
# Manual run | |
#workflow_dispatch: | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - | |
- name: Install python versions | |
run: sudo apt-get install python3.10-dev python3.11-dev -y | |
- name: Build with poetry | |
run: poetry build | |
- name: Testing | |
run: | | |
poetry install --with test | |
#poetry run pytest ./tests -vvv -s | |
poetry run pytest ./tests/test_nlp.py -vvv -s | |
poetry run pytest ./tests/test_glm.py -vvv -s |