Prepare the build and test environment by setting up a Python virtual environment:
# Install the virtualenv package
python3 -m pip install --user virtualenv
# Create a new virtualenv for the plugin
python3 -m venv venv
The build and test scripts automatically activate the virtual environment where needed. To manually activate it, run the following command:
source venv/bin/activate
Run the build script
./build.sh
The output of this script is a .zip
file that can be uploaded in the Ultimaker Contributor Portal.
A GitHub Action has been configured to automatically create a build on every pull request. You can download the artifacts for each GitHub Action via the GitHub user interface.
Run the test suite (~60% coverage):
./test.sh