forked from tektronix/tm_devices
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tektronix:main' into main
- Loading branch information
Showing
515 changed files
with
101,231 additions
and
12,438 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,4 +1,2 @@ | ||
--- | ||
addReviewers: true | ||
addAssignees: author | ||
reviewers: [tektronix/tm-devices-maintainers] |
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 |
---|---|---|
@@ -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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: Deploy Docs to Github Pages | ||
on: | ||
workflow_run: | ||
branches: [main] | ||
workflows: [Test docs] | ||
types: [completed] | ||
concurrency: | ||
group: publish-docs | ||
jobs: | ||
publish-docs: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'tektronix/tm_devices' && github.event.workflow_run.conclusion | ||
== 'success' && github.ref == 'refs/heads/main' | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Download Artifact | ||
uses: dawidd6/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
run_id: ${{ github.event.workflow_run.id }} | ||
workflow_conclusion: success | ||
name: artifact_docs | ||
- name: Unzip Documentation Results | ||
run: | | ||
unzip docs_results.zip | ||
rm -r .results_docs/html/.doctrees | ||
- name: Upload To Pages | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: .results_docs/html | ||
- name: Deploy To Pages | ||
uses: actions/deploy-pages@v4 | ||
id: deployment |
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 |
---|---|---|
|
@@ -15,34 +15,42 @@ on: | |
concurrency: | ||
group: pypi | ||
jobs: | ||
print-inputs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create summary of workflow inputs | ||
run: | | ||
echo "### inputs" >> $GITHUB_STEP_SUMMARY | ||
echo "- release_level: ${{ inputs.release_level }}" >> $GITHUB_STEP_SUMMARY | ||
# This job requires a Personal Access Token (Classic) with | ||
# the public_repo permission. It also needs a private/public | ||
# ssh key pair that can be used for signing. The public key must | ||
# be attached to the account as an SSH signing key. | ||
pypi-version: | ||
name: Update package version | ||
needs: [print-inputs] | ||
if: github.repository == 'tektronix/tm_devices' && github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
environment: package-release-gate | ||
permissions: | ||
id-token: write | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.TEK_OPENSOURCE_TOKEN }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: x | ||
check-latest: true | ||
- name: Check for unreleased entries in the Changelog and copy files to templates | ||
run: | | ||
python scripts/check_unreleased_changelog_items.py | ||
git add python_semantic_release_templates | ||
git config --global tag.gpgSign true | ||
- name: Python Semantic Release | ||
uses: python-semantic-release/python-semantic-release@v8.2.0 # 8.3.0 has a bug in the version output variable | ||
uses: python-semantic-release/python-semantic-release@v8.7.2 | ||
id: release | ||
with: | ||
force: ${{ inputs.release_level }} | ||
|
@@ -60,12 +68,12 @@ jobs: | |
if: github.repository == 'tektronix/tm_devices' && github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: main # Make sure to check out the latest commit on main, not the original commit that triggered the workflow | ||
fetch-depth: 0 | ||
- name: Build package | ||
uses: hynek/build-and-inspect-python-package@v1.5 | ||
uses: hynek/build-and-inspect-python-package@v2.0.1 | ||
upload-testpypi: | ||
name: Upload package to TestPyPI | ||
needs: [pypi-build] | ||
|
@@ -76,12 +84,12 @@ jobs: | |
id-token: write | ||
steps: | ||
- name: Download built packages | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Packages | ||
path: dist | ||
- name: Upload package to Test PyPI | ||
uses: pypa/[email protected].8 | ||
uses: pypa/[email protected].11 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
upload-pypi: | ||
|
@@ -94,12 +102,12 @@ jobs: | |
id-token: write | ||
steps: | ||
- name: Download built packages | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Packages | ||
path: dist | ||
- name: Upload package to PyPI | ||
uses: pypa/[email protected].8 | ||
uses: pypa/[email protected].11 | ||
upload-github: | ||
name: Upload package to GitHub Release | ||
needs: [upload-pypi] | ||
|
@@ -109,12 +117,12 @@ jobs: | |
id-token: write | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: main # Make sure to check out the latest commit on main, not the original commit that triggered the workflow | ||
fetch-depth: 0 | ||
- name: Download built packages | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Packages | ||
path: dist | ||
|
@@ -141,15 +149,15 @@ jobs: | |
- ' --index-url=https://test.pypi.org/simple/ --extra-index-url=https://pypi.org/simple' | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: x | ||
check-latest: true | ||
- name: Test installing package | ||
# A retry is used to allow for some downtime before the package is installable | ||
uses: nick-fields/retry@v2 | ||
uses: nick-fields/retry@v3 | ||
with: | ||
timeout_minutes: 2 | ||
timeout_minutes: 10 | ||
max_attempts: 5 | ||
retry_wait_seconds: 30 | ||
warning_on_retry: false | ||
|
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,14 +12,13 @@ jobs: | |
if: github.repository == 'tektronix/tm_devices' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
# TODO: update to just "x", currently there appears to be a bug in hynek/build-and-inspect-python-package, where it uses an outdated version of typing_extensions. | ||
python-version: 3.11 | ||
python-version: x | ||
check-latest: true | ||
- name: Install workflow dependencies | ||
run: pip install poetry-core tomli tomli_w requests | ||
|
@@ -33,7 +32,7 @@ jobs: | |
python scripts/project_version.py --set-version=$NEW_VERSION | ||
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_OUTPUT | ||
- name: Build package | ||
uses: hynek/build-and-inspect-python-package@v1.5 | ||
uses: hynek/build-and-inspect-python-package@v2.0.1 | ||
outputs: | ||
built-version: ${{ steps.create-version.outputs.NEW_VERSION }} | ||
test-pypi-upload: | ||
|
@@ -46,12 +45,12 @@ jobs: | |
id-token: write | ||
steps: | ||
- name: Download built packages | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Packages | ||
path: dist | ||
- name: Upload package to Test PyPI | ||
uses: pypa/[email protected].8 | ||
uses: pypa/[email protected].11 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
test-pypi-install: | ||
|
@@ -61,15 +60,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: x | ||
check-latest: true | ||
- name: Test installing from test.pypi.org | ||
# A retry is used to allow for some downtime before the package is installable | ||
uses: nick-fields/retry@v2 | ||
uses: nick-fields/retry@v3 | ||
with: | ||
timeout_minutes: 2 | ||
timeout_minutes: 10 | ||
max_attempts: 5 | ||
retry_wait_seconds: 30 | ||
warning_on_retry: false | ||
|
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.