forked from sdv-dev/SDV
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.28 KB
/
tutorials.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
name: Run Tutorials
on:
- push
- pull_request
jobs:
tutorials:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, macos-10.15, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- if: matrix.os == 'ubuntu-latest'
name: Install dependencies - Ubuntu
run: sudo apt-get install graphviz
- if: matrix.os == 'macos-latest'
name: Install dependencies - MacOS
run: brew install graphviz
- if: matrix.os == 'windows-latest'
name: Install dependencies - Windows
run: |
python -m pip install 'torch==1.8.0' -f https://download.pytorch.org/whl/cpu/torch/
python -m pip install 'torchvision==0.9.0' -f https://download.pytorch.org/whl/cpu/torchvision/
choco install graphviz
- if: matrix.os == 'windows-latest' && matrix.python-version == 3.6
name: Install dependencies - Windows with Python 3.6
run: python -m pip install pywinpty==2.0.1
- name: Install package and dependencies
run: pip install invoke jupyter .
- name: invoke tutorials
run: invoke tutorials