From ed2da78ca68a8eedcbe7a2e38d000fbf1eb49f80 Mon Sep 17 00:00:00 2001 From: Ruslan Baikulov Date: Thu, 25 Jan 2024 01:51:41 +0300 Subject: [PATCH] test: Change test GitHub Action workflow to use pyproject.toml and ruff --- .github/workflows/test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e6e9f7b..484eeb5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,18 +23,18 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install test dependencies - run: | - python -m pip install --upgrade pip - pip install -r tests/requirements.txt - name: Install CPU PyTorch if: ${{ matrix.os != 'macos-latest' }} - run: pip3 install torch==2.0.1 --index-url https://download.pytorch.org/whl/cpu + run: pip3 install torch==2.1.2 --index-url https://download.pytorch.org/whl/cpu - name: Install PyTorch on macOS if: ${{ matrix.os == 'macos-latest' }} - run: pip3 install torch==2.0.1 + run: pip3 install torch==2.1.2 + - name: Install test dependencies + run: | + python -m pip install --upgrade pip + pip install -e .[tests] - name: Check code style - run: flake8 + run: ruff check . - name: Test run: pytest - name: Upload coverage