Skip to content

Workflow action updates and fixes #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
0a79225
Revert workaround as sync-label bug was fixed in labeler-v5.0.0
ltan10 Feb 26, 2025
0c9eb45
Updated missing documentation for mdx support
ltan10 Feb 23, 2025
87a3d59
Fixes functions not rendered during markdown generation and no "find_…
ltan10 Feb 7, 2025
c743882
Overhauled docstring render and added Github flavour admonition support
ltan10 Feb 7, 2025
502e069
Render class __init__ method as constructor using class name
ltan10 Feb 16, 2025
5e938e5
Support including private modules with, aka files with "_" prefix.
ltan10 Feb 16, 2025
b6a650b
Add table of contents feature to module file
ltan10 Feb 23, 2025
6ce29fa
Fixed incorrect and unsafe src href link
ltan10 Feb 24, 2025
d8d3094
Added feature for user override of url line anchor notation (#74)
ltan10 Feb 24, 2025
8adaff5
Forced generated markdown file to be platform independent
ltan10 Feb 25, 2025
2a0a5de
Crude workaround for AttributeError, no attribute "__create_fn__" (#72)
ltan10 Feb 26, 2025
d9d60d0
Added rendering support for enum, dataclass, and exception
ltan10 Feb 26, 2025
fc350c8
Updated API document example and bump version to 0.6.0
ltan10 Feb 25, 2025
426ec7c
Merge branch 'feature/doc-to-md-overhaul'
ltan10 Mar 11, 2025
52a4d2f
Increased stale cutoff time
ltan10 Mar 12, 2025
c1b5a65
Bump build-pipeline dependency
ltan10 Mar 12, 2025
fcacd53
Update universal_build docker version
ltan10 Mar 12, 2025
bc69aa0
Fixed Flake8 Error Code '#' supplied to 'ignore' option does not match
ltan10 Mar 13, 2025
b9d2626
Bump release-pipeline dependency
ltan10 Mar 12, 2025
3133c16
Fixed github actions/labeler unexpected type for label "documentation"
ltan10 Mar 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/build-environment/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM mltooling/build-environment:0.6.12
FROM mltooling/build-environment:0.6.18
35 changes: 19 additions & 16 deletions .github/pr-labeler-file-path.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# Add documentation label to any change in documentation related files
documentation:
- "docs/*"
- "docs/**/*"
- "README.md"
- "**/README.md"
- "CONTRIBUTING.md"
- any:
- changed-files:
- any-glob-to-any-file: [
"docs/**/*", # All files, including subfolders
"README.md",
"**/README.md",
"CONTRIBUTING.md",
]

maintenance:
- ".vscode/*"
- ".vscode/**/*"
- ".github/*"
- ".github/**/*"
- ".reuse/*"
- "LICENSES/*"
- ".editorconfig"
- ".gitignore"
- "**/.gitignore"
- "build.py"
- "**/build.py"
- any:
- changed-files:
- any-glob-to-any-file: [
".vscode/**/*", # All files, including subfolders
".github/**/*", # All files, including subfolders
".reuse/*",
"LICENSES/*",
".editorconfig",
"**/.gitignore",
"build.py",
]
2 changes: 1 addition & 1 deletion .github/workflows/build-pipeline.yml
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ jobs:
# Set host ip to env variable to be uside within container actions
- name: set-host-ip
run: echo "_HOST_IP=$(hostname -I | cut -d ' ' -f 1)" >> $GITHUB_ENV
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: run-build-scripts
uses: ./.github/actions/build-environment
with:
15 changes: 9 additions & 6 deletions .github/workflows/close-stale-issues.yml
Original file line number Diff line number Diff line change
@@ -9,11 +9,14 @@ jobs:
close-stale-issues:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days"
stale-pr-message: "This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days"
days-before-stale: 90
days-before-close: 14
stale-pr-label: stale
stale-issue-message: "This issue is stale because it has been open 182 days with no activity. Remove stale label or comment or this will be closed in 28 days"
stale-pr-message: "This PR is stale because it has been open 182 days with no activity. Remove stale label or comment or this will be closed in 28 days"
close-issue-message: "Issue was closed due to inactivity."
close-pr-message: "PR was closed due to inactivity."
days-before-stale: 182
days-before-close: 28
stale-pr-label: "stale"
stale-issue-label: "stale"
15 changes: 9 additions & 6 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
name: pr-labeler

on:
- pull_request_target
pull_request_target:
types: [opened]

jobs:
pr-labeler:
runs-on: ubuntu-latest
permissions:
contents: read # for TimonVS/pr-labeler-action to read config file
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
steps:
- uses: actions/labeler@main
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/pr-labeler-file-path.yml
# workaround for problem: https://github.com/wesnoth/wesnoth/commit/958c82d0867568057caaf58356502ec8c87d8366
sync-labels: false
- uses: TimonVS/pr-labeler-action@v3
- uses: TimonVS/pr-labeler-action@v5
with:
configuration-path: .github/pr-labeler-branch-name.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/pr-labeler-branch-prefix.yml
# Evaluate: https://github.com/srvaroa/labeler
10 changes: 5 additions & 5 deletions .github/workflows/release-pipeline.yml
Original file line number Diff line number Diff line change
@@ -43,15 +43,15 @@ jobs:
apt-get install -y git
- if: ${{ env.GITHUB_TOKEN != null && env.GITHUB_TOKEN != '' }}
name: create-release-branch
uses: peterjgrainger/action-create-branch@v2.0.1
uses: peterjgrainger/action-create-branch@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: "${{ env.BRANCH_PREFIX }}${{ env.VERSION }}"
- if: ${{ ! (env.GITHUB_TOKEN != null && env.GITHUB_TOKEN != '') }}
uses: actions/checkout@v2
uses: actions/checkout@v4
- if: ${{ env.GITHUB_TOKEN != null && env.GITHUB_TOKEN != '' }}
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ env.BRANCH_PREFIX }}${{ env.VERSION }}
@@ -89,7 +89,7 @@ jobs:
container_registry_password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
- if: ${{ env.GITHUB_TOKEN != null && env.GITHUB_TOKEN != '' }}
name: push-changes
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ env.BRANCH_PREFIX }}${{ env.VERSION }}
commit_user_name: Release Bot
@@ -117,7 +117,7 @@ jobs:
run: echo "The release drafter currently does not work with act, please create the release from the Github UI."
- if: ${{ env.GITHUB_ACTOR != 'nektos/act' && env.GITHUB_TOKEN != null && env.GITHUB_TOKEN != '' }}
name: checkout-fixed-release-drafter
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ml-tooling/release-drafter
path: ./.git/cloned-actions/release-drafter
15 changes: 10 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -7,11 +7,16 @@ universal = false

[flake8]
ignore =
E203, # space before : (needed for how black formats slicing)
# E266, # too many leading '#' for block comment
E501, # line too long
E731, # do not assign a lambda expression, use a def
W503, # line break before binary operator
# space before : (needed for how black formats slicing)
E203,
# too many leading '#' for block comment
# E266,
# line too long
E501,
# do not assign a lambda expression, use a def
E731,
# line break before binary operator
W503,
max-line-length = 88
# select = B,C,E,F,W,T4,B9
# max-complexity = 18
Loading