forked from awslabs/gluonts
-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (39 loc) · 1.59 KB
/
test_release_win32_nightly.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
name: Test latest release nightly Windows
on:
schedule:
- cron: '0 0 * * *'
jobs:
test-stable-windows:
strategy:
max-parallel: 4
fail-fast: false
matrix:
python-version: [3.6, 3.7]
runs-on: windows-latest
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Clone and install dependencies
run: |
$tmp=(Invoke-WebRequest -Uri https://api.github.com/repos/awslabs/gluon-ts/releases/latest).Content | ConvertFrom-Json | Select-Object tag_name
$tmp=$tmp.psobject.properties.value.trim()
git clone https://github.com/awslabs/gluon-ts --branch $tmp
cd gluon-ts
python -m pip install pip==20.2
pip install mxnet~=1.7.0
pip install torch==1.8.1+cpu --no-cache-dir -f https://download.pytorch.org/whl/torch_stable.html
pip install pytorch-lightning~=1.3.0
pip install -e ".[shell]"
pip install -r requirements/requirements-test.txt
pip install -r requirements/requirements-extras-sagemaker-sdk.txt
pip install -r requirements/requirements-extras-m-competitions.txt
pip install -r requirements/requirements-rotbaum.txt
pip install -r requirements/requirements-extras-anomaly-evaluation.txt
pip install -r requirements/requirements-extras-autogluon.txt
shell: powershell
- name: Test with pytest
run: |
cd gluon-ts
pytest -m 'not (gpu or serial)' --cov src/gluonts --cov-report=term --cov-report xml test