Skip to content

Commit

Permalink
test: Change test GitHub Action workflow to use pyproject.toml and ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
lRomul committed Jan 24, 2024
1 parent 05fffe9 commit ed2da78
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed2da78

Please sign in to comment.