-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (40 loc) · 1.1 KB
/
ci.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
44
45
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '00 12 * * 1' # Runs every Monday at 8:00 AM EST
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up graphviz on Ubuntu
if: matrix.os == 'ubuntu-latest'
run:
sudo apt install graphviz graphviz-dev
- name: Run unit-tests
shell: bash
run: |
python3 -m pip install --upgrade pip
pip install -e .
pip install -r requirements_dev.txt
pytest .
- name: Run notebooks
shell: bash
run: |
pip install -r notebooks/requirements.txt
python3 -m ipykernel install --user --name boolxai_test
pytest --nbmake --nbmake-timeout=3600 --overwrite notebooks/*.ipynb