This template repository is a git submodule that provides a collection of Makefile commands and CI/CD pipelines for AusSRC Python code repositories stored on Github.
Run the following commands to include
git submodule add ... templates
git submodule update --init --recursive
Create a Makefile at the root level of the repository and import the template
include templates/Makefile
Once the Makefile has been created, and the template has been imported, you can run the CI/CD pipelines that are run in Github Actions locally
This is a required file that should contain the following development dependencies
[project.optional-dependencies]
dev = [
"ruff",
"pytest",
"pytest-cov",
]
We have defined workflow templates here to be used in your custom CI/CD workflows. You can read more in the docs. An example of calling a workflow template from a Python project root level .gitlab/workflows/ci.yml pipeline is shown below
name: cicd
on:
[push, pull_request]
jobs:
lint:
uses: AusSRC/python-templates/.github/workflows/lint.yml@main