Skip to content

fixed github action

fixed github action #8

Workflow file for this run

name: Run Unit Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -U pip
pip install torch==2.2.0+cpu --index-url https://download.pytorch.org/whl/cpu
pip install --no-use-pep517 --no-build-isolation .
- name: Lint with Ruff
run: |
pip install ruff
ruff check .
- name: Run tests
run: |
pip install pytest
python -m unittest discover -s tests