This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import subprocess | |
import os | |
env = os.environ.copy() | |
STALE_PERIOD = 10 | |
REQUIRED_BRANCHES = ['master', 'staging', 'develop'] | |
branches = subprocess.run('git branch -r' , capture_output=True, env=env, shell=True) | |
branches = branches.stdout.decode('utf-8').strip().split('\n')[1:] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
import sys | |
from typing import Union | |
BRANCH_TAG_MAP = { | |
"develop": "nightly", | |
"staging": "alpha", | |
"release": "alpha", | |
"master": None, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace 'src' with the right package name. | |
# Change project.name | |
# Ensure author name and email matches. | |
# Change project.urls.Home | |
# Update python version. | |
# update packages. | |
[build-system] | |
requires = ["poetry-core", "poetry-dynamic-versioning"] | |
build-backend = "poetry_dynamic_versioning.backend" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish docs via GitHub Pages | |
# syncs your mkdocs markdown files with azure devops wiki. | |
# NOTE: this doesn't work with automated markdown files which maybe generated in your case | |
# this also doesn't deal with ordering | |
on: | |
push: | |
branches: | |
- develop | |
workflow_dispatch: |