forked from unit8co/darts
-
Notifications
You must be signed in to change notification settings - Fork 1
98 lines (80 loc) · 2.34 KB
/
merge.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: darts PR merge workflow
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
python-version: [3.6, 3.7, 3.8]
steps:
- name: "1. Clone repository"
uses: actions/checkout@v2
- name: "2. Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: "3. Setup pip"
run: |
./gradlew setupPip
- name: "4. Attach cache for pip"
uses: actions/cache@v1
id: cache
with:
path: ~/.cache/pip
key: tests-${{ runner.os }}-pip-${{ hashFiles('requirements/main.txt', 'requirements/dev.txt') }}
restore-keys: |
tests-${{ runner.os }}-pip-
- name: "5. Tests"
run: |
./gradlew test
check-examples:
runs-on: ubuntu-latest
strategy:
matrix:
example-name: [FFT-examples.ipynb, TCN-examples.ipynb, RNN-examples.ipynb, darts-intro.ipynb]
steps:
- name: "1. Clone repository"
uses: actions/checkout@v2
- name: "2. Set up Python 3.7"
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: "3. Run examples ${{matrix.example-name}}"
run: |
./gradlew checkExample -PexampleName=${{matrix.example-name}}
docs:
runs-on: ubuntu-latest
steps:
- name: "1. Clone repository"
uses: actions/checkout@v2
- name: "2. Set up Python 3.6"
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: "3. Install pandoc"
run: |
sudo apt-get install -y pandoc
- name: "4. Setup pip"
run: |
./gradlew setupPip
- name: "5. Attach cache for pip"
uses: actions/cache@v1
id: cache
with:
path: ~/.cache/pip
key: release-${{ runner.os }}-pip-${{ hashFiles('requirements/main.txt', 'requirements/release.txt') }}
restore-keys: |
release-${{ runner.os }}-pip-
- name: "6. Build docs"
run: |
./gradlew buildDocs
- name: "7. Print secrets"
run: |
echo Docker user ${{ secrets.DOCKER_HUB_USER }}