Skip to content

cmendible/azure_synapse_notebook_tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Azure Synapse Notebook Tests

This repository contains 2 workflows:

  • Notebook Linting & Unit Tests (unit-tests.yml): runs pylint and unit tests for the notebooks in the workspace/notebooks folder
  • Synapse Workspace Deployment (workspace-deployment.yml): creates the templates for the Synapse workspace.

Notebook Linting & Unit Tests

Prerequisites:

  • nbQA: Run isort, pyupgrade, mypy, pylint, flake8, black, blacken-docs, and more on Jupyter Notebooks
  • testbook: Unit test your Jupyter Notebooks.

How it works

The workflow usese github actions to preform the following steps:

  • Checks out the code.
  • Installs nbQA & testbook.
  • Extracts and fixes the ipynb notebooks from the workspace/notebooks folder. Resulting files are stored in the ipynb_to_test folder.
  • Using nbQA runs pylint on the ipynb_to_test folder.
  • Using testbook run pytest on the ipynb_to_test folder.

Synapse Workspace Deployment

How it works

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.

References

About

Azure Synapse Notebook Tests

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages