Skip to content

openclimatefix/.github

Repository files navigation

.github

Various Community and Code Health Files.

Issue and PR Templates

Found in .github/ISSUE_TEMPLATE and ./PULL_REQUEST_TEMPLATE.md respectively. These files are used across the organisation as issue templates.

Organisation Profile README

Can be found in .profile/README.md and is rendered by GitHub on the OCF organisation page.

Reusable Workflows

To reduce duplication, we offer a set of reusable workflows that are used across most of our repositories. The following workflows can be found in .github/workflows/:

  • python-lint: Runs ruff, and black
  • python-test: Runs pytest and pydoctest
  • python-release: Runs a release script

You can use these workflows in any other workflow using the syntax {owner}/{repo}/{path}/{filename}@{ref}. For example:

name: Lint Python
on: [push]
jobs:
  call-run-python-linters:
    uses: openclimatefix/.github/.github/workflows/python-lint.yml@main

You can learn more about reusable workflows in the GitHub docs.