Skip to content

EI-133: Improve setup #32

EI-133: Improve setup

EI-133: Improve setup #32

Workflow file for this run

name: Unit-Tests
on:
push:
branches: [master]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: cache poetry install
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-1.2.0-0
- uses: snok/install-poetry@v1
with:
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: true
- name: cache deps
id: cache-deps
uses: actions/cache@v2
with:
path: .venv
key: pydeps-${{ hashFiles('**/poetry.lock') }}
- run: poetry install --no-interaction --no-root
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: poetry install --no-interaction --with test
- run: poetry run pytest