Skip to content

minor changes on comments and notebook #661

minor changes on comments and notebook

minor changes on comments and notebook #661

Workflow file for this run

name: run testing suite
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
max-parallel: 15
matrix:
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, macos-latest]
python-version: [3.7, 3.8, 3.9]
exclude:
# temporary exclusion until py3.8 deps work on Windows
- python-version: 3.7
os: windows-2019
- python-version: 3.8
os: windows-2019
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
source $HOME/.poetry/env
python -m pip install --upgrade --user pip
pip install pytest pytest-cov
poetry lock
poetry build
poetry install
poetry run pip install 'setuptools==59.5.0'
# pinning setuptools is a temporary fix to: pytorch-lightning 1.5.10 requires setuptools==59.5.0
# supposedly poetry allows pinning ver. of setuptools in pyproject.ml files but it is not working atm https://github.com/python-poetry/poetry/issues/4511
- name: Run tests
run: |
source $HOME/.poetry/env
poetry run coverage run --source=torchdyn -m pytest