-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update config docs and release workflow (#111)
* ci: Bump commitizen pre-commit version. * ci: Add new job to the official release workflow that will add a summary with the release level input to make reviewing a deployment easier. * ci: Bump pypa/gh-action-pypi-publish from 1.8.10 to 1.8.11. * docs: Add a code example of passing in config options in a dataclass via a keyword argument when initializing the `DeviceManager`. * docs: Add email address to security policy.
- Loading branch information
Showing
5 changed files
with
32 additions
and
7 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 |
---|---|---|
|
@@ -15,12 +15,20 @@ 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 | ||
|
@@ -82,7 +90,7 @@ jobs: | |
name: Packages | ||
path: dist | ||
- name: Upload package to Test PyPI | ||
uses: pypa/[email protected].10 | ||
uses: pypa/[email protected].11 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
upload-pypi: | ||
|
@@ -100,7 +108,7 @@ jobs: | |
name: Packages | ||
path: dist | ||
- name: Upload package to PyPI | ||
uses: pypa/[email protected].10 | ||
uses: pypa/[email protected].11 | ||
upload-github: | ||
name: Upload package to GitHub Release | ||
needs: [upload-pypi] | ||
|
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 |
---|---|---|
|
@@ -50,7 +50,7 @@ jobs: | |
name: Packages | ||
path: dist | ||
- name: Upload package to Test PyPI | ||
uses: pypa/[email protected].10 | ||
uses: pypa/[email protected].11 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
test-pypi-install: | ||
|
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 |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
|
||
## Reporting a Vulnerability | ||
|
||
Please reach out directly to the maintainers to report a | ||
Please reach out directly to the maintainers at [email protected] to report a | ||
potential vulnerability. **Do not file a public issue.** |
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