From c652850658e68553b3e4bd3481e686cfce1e1d99 Mon Sep 17 00:00:00 2001 From: Benjamin Midtvedt Date: Thu, 23 May 2024 15:58:18 +0200 Subject: [PATCH] undo CI test --- .github/workflows/ci.yml | 18 +++++++++--------- test.py | 6 ------ 2 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 test.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d116ba66..ca394537 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,8 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] - os: [macos-14] + python-version: ["3.8", "3.9", "3.10", "3.11"] + os: [ubuntu-latest, macos-12, windows-latest] steps: - uses: actions/checkout@v3 @@ -29,12 +29,12 @@ jobs: python -m pip install --upgrade pip python -m pip install flake8 python -m pip install -r requirements.txt - # - name: Lint with flake8 - # 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 + - name: Lint with flake8 + 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 - name: Test with unittest run: | - python test.py + python -m unittest diff --git a/test.py b/test.py deleted file mode 100644 index 731e0c20..00000000 --- a/test.py +++ /dev/null @@ -1,6 +0,0 @@ -import torch -import torch.nn as nn - -x = torch.randn(2, 2) -print("sending x to mps") -x = x.to("mps")