Skip to content

build-test

build-test #28

Workflow file for this run

name: build-test
on: [push, pull_request, workflow_dispatch]
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10']
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: pip install poetry
- name: Configure Poetry
run: poetry config virtualenvs.in-project true
- name: Lock dependencies
run: poetry lock
- name: Build package
run: poetry build
- name: Install dependencies
run: poetry install --with dev,notebook
- name: Run tests
run: poetry run pytest
- name: Testing Notebooks
run: poetry run pytest --nbmake ./notebooks/