build-test #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |