Skip to content

Merge pull request #13 from fabiobarkoski/cli #102

Merge pull request #13 from fabiobarkoski/cli

Merge pull request #13 from fabiobarkoski/cli #102

Workflow file for this run

name: 0-on-push-test
on:
push: {}
workflow_dispatch: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.12
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
working-directory: uplib
- name: Install project
run: poetry install --no-interaction
working-directory: uplib
- name: Run tests
run: poetry run pytest -s
working-directory: uplib