Skip to content

Install env and run tests. #14

Install env and run tests.

Install env and run tests. #14

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Install env and run tests.
on: workflow_dispatch
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: Gr1N/setup-poetry@v8
with:
poetry-version: 1.5.1
- uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- run: poetry --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
poetry install
poetry run python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
- name: Test with pytest
run: |
poetry run pytest tests/