You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
426 B
YAML
22 lines
426 B
YAML
name: Unit tests
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
TORCH_DEVICE: "cpu"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python 3.11
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.11
|
|
- name: Install python dependencies
|
|
run: |
|
|
pip install poetry
|
|
poetry install
|
|
- name: Run tests
|
|
run: poetry run pytest |