This git repository is a minimal example to show how to structure a Python package, and how to use GitHub Actions to automatically run tests and build documentation for your software.
Create a new environment will all dependencies and make it the active environment
conda env create -f environment.yml
conda activate mypackage
Inspect information about the environment and list all installed packages
conda info
conda list
Install our own package in the environment
python3 -m pip install .
Run the test suite
pytest .
Auto-generate documentation
cd docs/
make html
The generated HTML files are stored in docs/build/html
.
When commits are pushed or merged to the remote repository, a new version of the documentation is build and published on GitHub pages.
Further information