-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into neuralsde
- Loading branch information
Showing
15 changed files
with
172 additions
and
63 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,38 +7,72 @@ jobs: | |
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] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
torch-version: ["1.8.1", "1.9.1", "1.10.0", "1.11.0", "1.12.0", "1.13.1", "2.0.0"] | ||
exclude: | ||
# temporary exclusion until py3.8 deps work on Windows | ||
- python-version: 3.7 | ||
os: windows-2019 | ||
- python-version: 3.8 | ||
os: windows-2019 | ||
# python >= 3.10 does not support pytorch < 1.11.0 | ||
- torch-version: "1.8.1" | ||
python-version: "3.10" | ||
- torch-version: "1.9.1" | ||
python-version: "3.10" | ||
- torch-version: "1.10.0" | ||
python-version: "3.10" | ||
# python >= 3.11 does not support pytorch < 1.13.0 | ||
- torch-version: "1.8.1" | ||
python-version: "3.11" | ||
- torch-version: "1.9.1" | ||
python-version: "3.11" | ||
- torch-version: "1.10.0" | ||
python-version: "3.11" | ||
- torch-version: "1.11.0" | ||
python-version: "3.11" | ||
- torch-version: "1.12.0" | ||
python-version: "3.11" | ||
- torch-version: "1.13.1" | ||
python-version: "3.11" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
id: cached-pip-wheels | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache | ||
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.torch-version }}-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies # hack for 🐛: don't let poetry try installing Torch https://github.com/pytorch/pytorch/issues/88049 | ||
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 | ||
pip install pytest pytest-cov papermill poethepoet>=0.10.0 | ||
pip install torch==${{ matrix.torch-version }} pytorch-lightning scikit-learn torchsde torchcde>=0.2.3 scipy matplotlib ipykernel ipywidgets | ||
poetry install --only-root | ||
poetry run pip install setuptools | ||
- name: List dependencies | ||
run: | | ||
pip list | ||
- name: Run pytest checks | ||
run: | | ||
source $HOME/.poetry/env | ||
source $VENV | ||
poetry run coverage run --source=torchdyn -m pytest | ||
- name: Report coverage | ||
uses: codecov/[email protected] |
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
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
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
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
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
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
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
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
Oops, something went wrong.