Skip to content

Add ruff linter

Add ruff linter #8

name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Set up CUDA
uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '12.0.1'
- name: Run tests
run: tox
env:
CUDA_PATH: ${{ steps.cuda-toolkit.outputs.CUDA_PATH }}