-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: Updated workflows to use pinned versions * fix: Fixed the version bumper regex to properly update the version tag * refactor: Moved all inputs into the main function of the actions to enable testing * test: Created a test for the bump_version_in_files.py script * test: Created a test for the create_unique_testpypi_version action Python code. Also converted the action to use underscores instead of dashes to enable testing the Python code. * test: Created a test for the find_unreleased_changelog_items action Python code. Also converted the action to use underscores instead of dashes to enable testing the Python code. * test: Created a test for the update_development_dependencies action Python code. Also converted the action to use underscores instead of dashes to enable testing the Python code. * test: Create a test-code.yml workflow * ci: Add dependency review workflow
- Loading branch information
Showing
41 changed files
with
1,117 additions
and
212 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 |
---|---|---|
|
@@ -94,13 +94,13 @@ jobs: | |
echo "The `python-versions-array` input is required when `build-and-publish-python-package` is set to `true`." | ||
exit 1 | ||
- if: ${{ endsWith(github.repository, '/python-package-ci-cd') }} # Run the local action when this is run in the python-package-ci-cd repository | ||
uses: ./actions/find-unreleased-changelog-items | ||
uses: ./actions/find_unreleased_changelog_items | ||
with: | ||
release-level: ${{ inputs.release-level }} | ||
previous-changelog-filename: ${{ inputs.previous-changelog-filename }} | ||
previous-release-notes-filename: ${{ inputs.previous-release-notes-filename }} | ||
- if: ${{ !endsWith(github.repository, '/python-package-ci-cd') }} # Run the public action when this is run outside the python-package-ci-cd repository | ||
uses: tektronix/python-package-ci-cd/actions/find-unreleased-changelog-items@main # TODO: update branch to tag | ||
uses: tektronix/python-package-ci-cd/actions/[email protected] | ||
with: | ||
release-level: ${{ inputs.release-level }} | ||
previous-changelog-filename: ${{ inputs.previous-changelog-filename }} | ||
|
@@ -125,12 +125,12 @@ jobs: | |
fetch-depth: 0 | ||
token: ${{ secrets.checkout-token }} | ||
- if: ${{ endsWith(github.repository, '/python-package-ci-cd') }} # Run the local action when this is run in the python-package-ci-cd repository | ||
uses: ./actions/find-unreleased-changelog-items | ||
uses: ./actions/find_unreleased_changelog_items | ||
with: | ||
previous-changelog-filename: ${{ inputs.previous-changelog-filename }} | ||
previous-release-notes-filename: ${{ inputs.previous-release-notes-filename }} | ||
- if: ${{ !endsWith(github.repository, '/python-package-ci-cd') }} # Run the public action when this is run outside the python-package-ci-cd repository | ||
uses: tektronix/python-package-ci-cd/actions/find-unreleased-changelog-items@main # TODO: update branch to tag | ||
uses: tektronix/python-package-ci-cd/actions/[email protected] | ||
with: | ||
previous-changelog-filename: ${{ inputs.previous-changelog-filename }} | ||
previous-release-notes-filename: ${{ inputs.previous-release-notes-filename }} | ||
|
@@ -225,7 +225,7 @@ jobs: | |
name: Packages | ||
path: dist | ||
- name: Publish package distributions to GitHub Releases | ||
uses: python-semantic-release/upload-to-gh-release@main | ||
uses: python-semantic-release/upload-to-gh-release@v9.8.7 | ||
with: | ||
root_options: -v --strict | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -28,12 +28,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- if: ${{ endsWith(github.repository, '/python-package-ci-cd') }} # Run the local action when this is run in the python-package-ci-cd repository | ||
uses: ./actions/create-unique-testpypi-version | ||
uses: ./actions/create_unique_testpypi_version | ||
id: create-version | ||
with: | ||
package-name: ${{ inputs.package-name }} | ||
- if: ${{ !endsWith(github.repository, '/python-package-ci-cd') }} # Run the public action when this is run outside the python-package-ci-cd repository | ||
uses: tektronix/python-package-ci-cd/actions/create-unique-testpypi-version@main # TODO: update branch to tag | ||
uses: tektronix/python-package-ci-cd/actions/[email protected] | ||
id: create-version | ||
with: | ||
package-name: ${{ inputs.package-name }} | ||
|
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 |
---|---|---|
|
@@ -78,15 +78,15 @@ jobs: | |
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
- if: ${{ endsWith(github.repository, '/python-package-ci-cd') }} # Run the local action when this is run in the python-package-ci-cd repository | ||
uses: ./actions/update-development-dependencies | ||
uses: ./actions/update_development_dependencies | ||
with: | ||
dependency-dict: ${{ inputs.dependency-dict }} | ||
update-pre-commit: ${{ inputs.update-pre-commit }} | ||
run-pre-commit: ${{ inputs.run-pre-commit }} | ||
pre-commit-hook-skip-list: ${{ inputs.pre-commit-hook-skip-list }} | ||
export-dependency-groups: ${{ inputs.export-dependency-groups }} | ||
- if: ${{ !endsWith(github.repository, '/python-package-ci-cd') }} # Run the public action when this is run outside the python-package-ci-cd repository | ||
uses: tektronix/python-package-ci-cd/actions/update-development-dependencies@main # TODO: update branch to tag | ||
uses: tektronix/python-package-ci-cd/actions/[email protected] | ||
with: | ||
dependency-dict: ${{ inputs.dependency-dict }} | ||
update-pre-commit: ${{ inputs.update-pre-commit }} | ||
|
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,17 @@ | ||
--- | ||
name: Pull Request Dependency Review | ||
on: | ||
pull_request: | ||
branches: [main] | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/dependency-review-action@v4 | ||
with: | ||
fail-on-severity: low | ||
comment-summary-in-pr: on-failure |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Publish Test Results | ||
on: | ||
workflow_run: | ||
workflows: [Test code] | ||
types: [completed] | ||
jobs: | ||
publish-test-results: | ||
uses: ./.github/workflows/check-api-for-breaking-changes.yml | ||
with: | ||
operating-systems-array: '["ubuntu"]' # this needs to match the operating-systems-array in the test-code.yml file | ||
permissions: | ||
checks: write | ||
pull-requests: write |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: Test code | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
# Cancel running jobs for the same workflow and branch. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
jobs: | ||
test-code: | ||
uses: ./.github/workflows/_reusable-test-code.yml | ||
with: | ||
repo-name: tektronix/python-package-ci-cd | ||
operating-systems-array: '["ubuntu"]' # this needs to match the operating-systems-array in the publish-test-results.yml file | ||
python-versions-array: '["3.12"]' # this needs to match the [tool.poetry.dependencies.python] version in the pyproject.toml file | ||
upload-to-codecov: true | ||
secrets: | ||
codecov-token: ${{ secrets.CODECOV_TOKEN }} |
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 |
---|---|---|
@@ -1,19 +1,33 @@ | ||
# Changelog | ||
|
||
--- | ||
The format is based on [Keep a Changelog](https://keepachangelog.com), and this | ||
project adheres to [Semantic Versioning](https://semver.org). | ||
|
||
## Unreleased | ||
Valid subsections within a version are: | ||
|
||
Things to be included in the next release go here. | ||
|
||
### Added | ||
|
||
- Something will be added | ||
- Added | ||
- Changed | ||
- Deprecated | ||
- Removed | ||
- Fixed | ||
- Security | ||
|
||
--- | ||
|
||
## v0.0.1 | ||
## Unreleased | ||
|
||
Things to be included in the next release go here. | ||
|
||
### Added | ||
|
||
- Something was done here in the past | ||
- Added a reusable workflow to check the Python API for breaking changes: [`check-api-for-breaking-changes.yml`](./workflows/check-api-for-breaking-changes.md) | ||
- Added a reusable workflow to perform CodeQL analysis: [`codeql-analysis.yml`](./workflows/codeql-analysis.md) | ||
- Added a reusable workflow to enforce Open-Source community standards: [`enforce-community-standards.yml`](./workflows/enforce-community-standards.md) | ||
- Added a reusable workflow to build a Python package: [`package-build.yml`](./workflows/package-build.md) | ||
- Added a reusable workflow to upload a Python package to TestPyPI: [`package-testpypi.yml`](./workflows/package-testpypi.md) | ||
- Added a reusable workflow to publish API comparison results as a Pull Request comment: [`publish-api-comparison.yml`](./workflows/publish-api-comparison.md) | ||
- Added a reusable workflow to publish test results as a Pull Request comment: [`publish-test-results.yml`](./workflows/publish-test-results.md) | ||
- Added a reusable workflow to create a Software Bill of Materials (SBOM) and scan it: [`sbom-scan.yml`](./workflows/sbom-scan.md) | ||
- Added a reusable workflow to run tests and linting against Python package code: [`test-code.yml`](./workflows/test-code.md) | ||
- Added a reusable workflow to run documentation builds and tests for a Python package: [`test-docs.yml`](./workflows/test-docs.md) | ||
- Added a reusable workflow to update Python and `pre-commit` dependencies: [`update-python-and-pre-commit-dependencies.yml`](./workflows/update-python-and-pre-commit-dependencies.md) |
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
Oops, something went wrong.