Skip to content

inital setup for unit tests #1

inital setup for unit tests

inital setup for unit tests #1

Workflow file for this run

name: Unit tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10, 3.11, 3.12]
steps:
# Check out the repository.
- name: Checkout code
uses: actions/checkout@v3
# Set up the specified Python version.
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Set up the CUDA toolkit.
- name: Set up CUDA
uses: nvidia/setup-cuda@v2
with:
cuda-version: "11.8" # Adjust the version as needed.
# Upgrade pip and install your package (and its dependencies from pyproject.toml).
- name: Install package and dependencies
run: |
python -m pip install --upgrade pip
# This command will build and install your package.
pip install .
# Run tests with pytest.
- name: Run tests
run: |
pytest test