-
Notifications
You must be signed in to change notification settings - Fork 58
43 lines (32 loc) · 1.1 KB
/
pytorch.yaml
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
name: PyTorch
on: [push, pull_request]
jobs:
test:
# https://help.github.com/en/articles/virtual-environments-for-github-actions#supported-virtual-environments
runs-on: ubuntu-18.04
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/using-environment-variables
env:
PYTHONWARNINGS: 'ignore'
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.6
- run: |
nproc
echo $PATH
# FIXME: don't install tensorflow
- run: pip install -r tests/requirements.txt
- run: pip install torch==1.5
- run: pip install --no-index . # install kungfu tensorflow
- run: |
rm setup.py
ln -s setup_pytorch.py setup.py
pip install --no-index .
- run: python ./examples/torch_simple_example.py
- run: kungfu-run -q -np 2 python ./examples/torch_simple_example.py
- run: |
for np in $(echo 1 2 3 4); do
kungfu-run -q -H 127.0.0.1:$np -np $np python ./tests/python/integration/test_torch_ops.py
done