-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 1.03 KB
/
Copy pathnotebook_test.yml
File metadata and controls
37 lines (35 loc) · 1.03 KB
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
name: Notebook Test
on: [push]
jobs:
notebook_test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install OpenMPI
run: |
sudo apt-get install -y -q openmpi-bin libopenmpi-dev
- name: Install Bluefog
run: |
git clone https://github.com/Bluefog-Lib/bluefog.git
cd bluefog && git submodule update --init --recursive
python -m pip install . && cd ..
- name: All Notebooks Test
run: |
python -m pip install -r requirements.txt
pytest -s -vv scripts/test_notebook.py
format:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: format file check
run: |
python -m pip install -r scripts/requirements.txt
sh scripts/format-notebook