Test latest release nightly Windows #223
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.8'] | |
runs-on: windows-latest | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Clone and install dependencies | |
run: | | |
$tmp=(Invoke-WebRequest -Uri https://api.github.com/repos/awslabs/gluonts/releases/latest).Content | ConvertFrom-Json | Select-Object tag_name | |
$tmp=$tmp.psobject.properties.value.trim() | |
git clone https://github.com/awslabs/gluonts --branch $tmp | |
cd gluon-ts | |
pip install "mxnet~=1.7.0" torch "pytorch-lightning~=1.5" | |
pip install -e ".[shell]" \ | |
-r requirements/requirements-test.txt \ | |
-r requirements/requirements-extras-sagemaker-sdk.txt \ | |
-r requirements/requirements-extras-m-competitions.txt \ | |
-r requirements/requirements-rotbaum.txt \ | |
-r requirements/requirements-extras-anomaly-evaluation.txt \ | |
-r requirements/requirements-extras-autogluon.txt | |
shell: powershell | |
- name: Test with pytest | |
run: | | |
cd gluon-ts | |
pytest -m 'not (gpu or serial)' --cov=gluonts --cov-report=term --cov-report xml test |