Skip to content

Feature/nav 145 extract python client package #8

Feature/nav 145 extract python client package

Feature/nav 145 extract python client package #8

Workflow file for this run

name: Poetry CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ 3.12 ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Set up cache
uses: actions/cache@v4
with:
path: |
.venv
~/.cache/pypoetry
key: poetry-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install --no-interaction --no-root
- name: Run unit tests
run: poetry run pytest -m unit
- name: Run mypy
run: poetry run mypy .