Feat/create-sphinx-documentation #35
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: CI | |
on: pull_request | |
jobs: | |
qa-py: | |
name: Python QA | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- uses: snok/install-poetry@v1 | |
- name: Install dependencies | |
run: poetry install | |
- name: Run Black to check formatting | |
run: poetry run black --check . | |
- name: Run isort | |
run: poetry run isort --check . | |
- name: Run nbqa isort | |
run: poetry run nbqa isort --check . | |
- name: Run flake8 | |
run: | | |
poetry run flake8 . | |
poetry run nbqa flake8 . | |
- name: Run nb-clean to check for unnecessary metadata and empty cells in notebooks | |
run: poetry run nb-clean check . --preserve-cell-outputs --remove-empty-cells | |
- name: Run notebooks to see if they execute without errors | |
run: poetry run poe nbrun |