Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Temporarily disable NNC-compile by default to enable PyTorch 2.0 #2350

Temporarily disable NNC-compile by default to enable PyTorch 2.0

Temporarily disable NNC-compile by default to enable PyTorch 2.0 #2350

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
PYTHONUNBUFFERED: 1
PYTEST_ADDOPTS: "--color=yes"
jobs:
conda-install:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ['3.9', '3.10']
defaults:
run:
# https://github.com/conda-incubator/setup-miniconda/tree/v2#use-a-default-shell
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Miniconda with Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
activate-environment: test_env
- name: Install other dependencies
run: |
conda install -c conda-forge -y boost-cpp eigen range-v3
python -m pip install --upgrade pip
- name: Install CPU PyTorch (only for Linux)
if: matrix.os == 'ubuntu-latest'
run: pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install Bean Machine in editable mode
run: pip install -v -e .[dev]
- name: Print out package info to help with debug
run: pip list
- name: Run unit tests with pytest
run: pytest