This repository contains 2 workflows:
- Notebook Linting & Unit Tests (
unit-tests.yml
): runspylint
and unit tests for the notebooks in theworkspace/notebooks
folder - Synapse Workspace Deployment (
workspace-deployment.yml
): creates the templates for the Synapse workspace.
- nbQA: Run isort, pyupgrade, mypy, pylint, flake8, black, blacken-docs, and more on Jupyter Notebooks
- testbook: Unit test your Jupyter Notebooks.
The workflow usese github actions to preform the following steps:
- Checks out the code.
- Installs nbQA & testbook.
- Extracts and fixes the
ipynb
notebooks from theworkspace/notebooks
folder. Resulting files are stored in theipynb_to_test
folder. - Using nbQA runs
pylint
on theipynb_to_test
folder. - Using testbook run
pytest
on theipynb_to_test
folder.
The workflow uses github actions to preform the following steps:
- Checks out the code.
- Runs the validate operation of the
Azure/Synapse-workspace-deployment
action. - Uploads the template files created in th
ExportedArtifacts
folder as artifacts.