Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.49 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.49 KB

python-template

Centre for Net Zero's template for Python projects.

Tools:

There are two Github Actions workflows:

Secrets configuration

If you want to use the Docker workflow, you need to set the following secrets:

  • GCP_ARTIFACT_REGISTRY, e.g. LOCATION-docker.pkg.dev/PROJECT-ID
  • GCP_ARTIFACT_REGISTRY_SA_KEY, the key for a service account with the roles to push and pull images.

Python Setup

You need to set up your Python environment first.

  1. Clone this repo.
  2. Run make setup in your terminal.

In step 2 this will:

  • Run pipenv sync --dev to install dependencies.
  • cp .env.template .env to create your local .env file - make sure you fill in any blanks.
  • Install your local pre-commit environment which will be used to maintain code standards
  • Check the tests work by running pipenv run pytest