-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from ASFHyP3/develop
Release v0.3.0
- Loading branch information
Showing
23 changed files
with
121 additions
and
76 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ on: | |
|
||
jobs: | ||
call-changelog-check-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].1 | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
|
||
jobs: | ||
call-create-jira-issue-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].1 | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].2 | ||
secrets: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ on: | |
|
||
jobs: | ||
call-labeled-pr-check-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].1 | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
|
||
jobs: | ||
call-release-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].1 | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].2 | ||
with: | ||
release_prefix: HyP3 Cookiecutter | ||
secrets: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ on: push | |
|
||
jobs: | ||
call-secrets-analysis-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].1 | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ on: | |
|
||
jobs: | ||
call-bump-version-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].1 | ||
uses: ASFHyP3/actions/.github/workflows/[email protected].2 | ||
secrets: | ||
USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Update ASFHyP3/actions version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version to set all ASFHyP3/actions to' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
update_actions_examples: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.TOOLS_BOT_PAK }} | ||
|
||
- name: Create update branch | ||
id: update | ||
env: | ||
ACTIONS_VERSION: ${{ github.event.inputs.version }} | ||
run: | | ||
git config user.name "tools-bot" | ||
git config user.email "[email protected]" | ||
export UPDATE_BRANCH=update-actions-to-${ACTIONS_VERSION} | ||
git switch -c ${UPDATE_BRANCH} | ||
export SEARCH_PATTERN='(ASFHyP3/actions/.github/workflows/.*.yml)@v[0-9]+\.[0-9]+\.[0-9]+' | ||
find -iwholename "*/workflows/*.yml" -exec sed -i -r "s|$SEARCH_PATTERN|\1@${ACTIONS_VERSION}|g" {} \; | ||
git commit -am "Bump actions ASFHyP3/actions version to ${ACTIONS_VERSION}" | ||
git push origin ${UPDATE_BRANCH} | ||
- name: Open PR | ||
env: | ||
PR_TITLE: Update ASFHyP3/actions version to ${{ github.event.inputs.version }} | ||
PR_BODY: PR created by a new `v*` tag push event | ||
GH_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} | ||
run: | | ||
gh pr create -t "${PR_TITLE}" -b "${PR_BODY}" -l tools-bot -l bumpless -B develop |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,4 @@ on: | |
jobs: | ||
call-changelog-check-workflow: | ||
# Docs: https://github.com/ASFHyP3/actions | ||
uses: ASFHyP3/actions/.github/workflows/[email protected] | ||
secrets: | ||
USER_TOKEN: {{'${{ secrets.GITHUB_TOKEN }}'}} | ||
uses: ASFHyP3/actions/.github/workflows/[email protected] |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,22 +13,20 @@ on: | |
jobs: | ||
call-pytest-workflow: | ||
# Docs: https://github.com/ASFHyP3/actions | ||
uses: ASFHyP3/actions/.github/workflows/reusable-pytest.yml@v0.7.1 | ||
uses: ASFHyP3/actions/.github/workflows/reusable-pytest.yml@v0.11.2 | ||
with: | ||
local_package_name: {{ cookiecutter.__package_name }} | ||
python_versions: >- | ||
["3.10", "3.11", "3.12"] | ||
["3.10", "3.11", "3.12", "3.13"] | ||
call-version-info-workflow: | ||
# Docs: https://github.com/ASFHyP3/actions | ||
uses: ASFHyP3/actions/.github/workflows/[email protected] | ||
with: | ||
python_version: "3.10" | ||
uses: ASFHyP3/actions/.github/workflows/[email protected] | ||
|
||
call-docker-ghcr-workflow: | ||
needs: call-version-info-workflow | ||
# Docs: https://github.com/ASFHyP3/actions | ||
uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.7.1 | ||
uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.11.2 | ||
with: | ||
version_tag: {{'${{ needs.call-version-info-workflow.outputs.version_tag }}'}} | ||
release_branch: main | ||
|
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
from importlib.metadata import version | ||
|
||
|
||
__version__ = version(__name__) | ||
|
||
__all__ = [ | ||
|
20 changes: 8 additions & 12 deletions
20
{{cookiecutter.__project_name}}/src/{{cookiecutter.__package_name}}/__main__.py
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
def test_{{cookiecutter.__package_name}}(script_runner): | ||
ret = script_runner.run('python', '-m', '{{cookiecutter.__package_name}}', '-h') | ||
ret = script_runner.run(['python', '-m', '{{cookiecutter.__package_name}}', '-h']) | ||
assert ret.success |