-
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.
ci: Set current version to v0.0.1 (#17)
- Loading branch information
Showing
21 changed files
with
41 additions
and
21 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 |
---|---|---|
|
@@ -96,7 +96,7 @@ jobs: | |
previous-changelog-filepath: ${{ inputs.previous-changelog-filepath }} | ||
previous-release-notes-filepath: ${{ inputs.previous-release-notes-filepath }} | ||
- 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/[email protected].0 | ||
uses: tektronix/python-package-ci-cd/actions/[email protected].1 | ||
with: | ||
release-level: ${{ inputs.release-level }} | ||
previous-changelog-filepath: ${{ inputs.previous-changelog-filepath }} | ||
|
@@ -126,7 +126,7 @@ jobs: | |
previous-changelog-filepath: ${{ inputs.previous-changelog-filepath }} | ||
previous-release-notes-filepath: ${{ inputs.previous-release-notes-filepath }} | ||
- 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/[email protected].0 | ||
uses: tektronix/python-package-ci-cd/actions/[email protected].1 | ||
with: | ||
previous-changelog-filepath: ${{ inputs.previous-changelog-filepath }} | ||
previous-release-notes-filepath: ${{ inputs.previous-release-notes-filepath }} | ||
|
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ jobs: | |
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/[email protected].0 | ||
uses: tektronix/python-package-ci-cd/actions/[email protected].1 | ||
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 |
---|---|---|
|
@@ -93,7 +93,7 @@ jobs: | |
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/[email protected].0 | ||
uses: tektronix/python-package-ci-cd/actions/[email protected].1 | ||
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
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 |
---|---|---|
|
@@ -54,3 +54,19 @@ def test_update_github_actions_version_multiple_matches(temporary_directory: Pat | |
"uses: tektronix/python-package-ci-cd/[email protected]\n" | ||
"uses: tektronix/python-package-ci-cd/[email protected]" | ||
) | ||
|
||
|
||
def test_update_github_actions_version_unicode_error( | ||
temporary_directory: Path, capsys: pytest.CaptureFixture[str] | ||
) -> None: | ||
"""Test handling of UnicodeDecodeError.""" | ||
file_path = temporary_directory / "file4.txt" | ||
# Write binary content to the file to trigger a UnicodeDecodeError | ||
file_path.write_bytes(b"\x80\x81\x82") | ||
|
||
update_github_actions_version(file_path, "1.2.3") | ||
|
||
# Capture the stdout output | ||
captured = capsys.readouterr() | ||
|
||
assert captured.out == f'Skipping "{file_path}" due to a UnicodeDecodeError.\n' |
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
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