-
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.
docs: Add codefactor badge to readme. (#10)
* docs: Add codefactor badge to readme. * ci: remove need for an environment when building and uploading package * ci: Update artifact name that needs to be downloaded in order to upload the package to pypi. * ci: Add workflow to assign reviewers to pull requests.
- Loading branch information
Showing
4 changed files
with
18 additions
and
13 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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
--- | ||
addReviewers: true | ||
addAssignees: author | ||
reviewers: | ||
- tektronix/tm-devices-maintainers | ||
# Number of reviewers has no impact on GitHub teams | ||
# Set 0 to add all the reviewers (default: 0) | ||
numberOfReviewers: 0 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Assign Reviewers to Pull Requests | ||
on: | ||
pull_request: | ||
types: [opened, ready_for_review, reopened] | ||
jobs: | ||
assign-reviewers: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Assign Reviewers | ||
uses: rowi1de/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
teams: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,6 @@ jobs: | |
# Upload to Test PyPI on every push to main | ||
test-pypi: | ||
name: Publish package to test.pypi.org | ||
environment: | ||
name: test-pypi | ||
url: https://test.pypi.org/p/tm_devices | ||
if: github.repository == 'tektronix/tm_devices' && github.event_name == 'push' | ||
&& github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
|
@@ -40,7 +37,7 @@ jobs: | |
- name: Download built package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Package | ||
name: Packages | ||
path: dist | ||
- name: Upload package to Test PyPI | ||
uses: pypa/[email protected] | ||
|
@@ -50,9 +47,6 @@ jobs: | |
# Upload to PyPI and create a tag in the repo after a GitHub Release is published | ||
pypi: | ||
name: Publish released package to pypi.org and create new tag in repo | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/tm_devices | ||
if: github.repository == 'tektronix/tm_devices' && github.event_name == 'release' | ||
&& github.event.action == 'published' | ||
runs-on: ubuntu-latest | ||
|
@@ -64,7 +58,7 @@ jobs: | |
- name: Download built package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Package | ||
name: Packages | ||
path: dist | ||
- name: Upload package to PyPI | ||
uses: pypa/[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