Skip to content

lkluft/example-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example repository (Python)

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.

Install the package

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 tests

Run the test suite

pytest .

Build documentation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages