Updating dependency, torch version #664
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: tests | |
on: | |
push: | |
paths: | |
- '**.py' | |
- 'pyproject.toml' | |
- '.github/workflows/**' | |
workflow_dispatch: | |
jobs: | |
tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
exclude: | |
- os: macos-latest # Segmentation fault on github actions that we can not reproduce in the wild | |
python-version: '3.8' | |
- os: macos-latest # TODO: Incompatible with torch version specification in pyproject.toml, torch <1.13 does not support py3.11 | |
python-version: '3.11' | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Temporary bugfix see https://github.com/pre-commit/pre-commit/issues/2178 | |
- name: Pin virtualenv version | |
run: pip install virtualenv==20.10.0 | |
- name: Install Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.3.2 | |
- name: Run poetry install | |
run: poetry install | |
- name: Run pytest | |
timeout-minutes: 10 | |
run: poetry run pytest -m "all_examples or metahyper" |