Test latest release nightly Ubuntu #202
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 Ubuntu | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
test-stable-ubuntu: | |
strategy: | |
max-parallel: 4 | |
fail-fast: false | |
matrix: | |
python-version: ['3.8'] | |
runs-on: ubuntu-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: | | |
git clone https://github.com/awslabs/gluonts --branch $(curl https://api.github.com/repos/awslabs/gluonts/releases/latest | grep tag_name | cut -d : -f 2,3 | tr -d \"\ | tr -d \,\ ) | |
cd gluon-ts | |
pip install pip==20.2 | |
pip install "mxnet~=1.8.0" "torch==1.10.0" "pytorch-lightning~=1.5" \ | |
-f https://download.pytorch.org/whl/cpu/torch_stable.html | |
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 | |
- name: Test with pytest | |
run: | | |
cd gluon-ts | |
pytest -m 'not (gpu or serial)' --cov=gluonts --cov-report=term --cov-report xml test |