Skip to content

V2: Improve saving and using of {input,output} scalers #1687

V2: Improve saving and using of {input,output} scalers

V2: Improve saving and using of {input,output} scalers #1687

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: tests
on:
push:
branches: [master]
pull_request:
branches: [master, v2/dev]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.11, 3.12]
# exclude:
# TODO: remove this exclude after Pytorch releases a version compatible with Python 3.12
# - python-version: 3.12
steps:
- uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@main
with:
environment-name: temp
condarc: |
channels:
- defaults
- conda-forge
channel_priority: flexible
create-args: |
python=${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0}
run: |
python -m pip install flake8 pytest parameterized nbmake
python -m pip install torch==2.2.0
python -m pip install torch-scatter -f https://data.pyg.org/whl/torch-2.2.0+cpu.html
python -m pip install -e ".[dev,docs,test]"
- name: Test with pytest
shell: bash -l {0}
run: |
pytest -v tests
- name: Test notebooks
shell: bash -l {0}
run: |
pytest --nbmake examples/training.ipynb
pytest --nbmake examples/predicting.ipynb
pytest --nbmake examples/convert_v1_to_v2.ipynb
pytest --nbmake examples/training_regression_multicomponent.ipynb
pytest --nbmake examples/predicting_regression_multicomponent.ipynb
# TODO: move this back before the tests after v2 development is done
- name: Lint with flake8
shell: bash -l {0}
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics