From ca396bbbc783b1b7746b9d9df476a2ef81e53581 Mon Sep 17 00:00:00 2001 From: lucidrains Date: Mon, 17 Jun 2024 07:18:32 -0700 Subject: [PATCH] fix tests --- .github/workflows/test.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d97c9fb..e233c61 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,21 +1,33 @@ -name: Pytest -on: [push, pull_request] +# 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: Python package + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.9] steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.10 - uses: actions/setup-python@v5 + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install -e .[test] + python -m pip install torch==2.1.0 --index-url https://download.pytorch.org/whl/cpu + python -m pip install scipy - name: Test with pytest run: | - python -m pytest tests/ + python setup.py test