-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (39 loc) · 1015 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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