Skip to content

Commit

Permalink
docs: Add codefactor badge to readme. (#10)
Browse files Browse the repository at this point in the history
* 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
nfelt14 committed Sep 23, 2023
1 parent e1dba17 commit 5bb3a95
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
6 changes: 1 addition & 5 deletions .github/auto_assign.yml
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]
14 changes: 14 additions & 0 deletions .github/workflows/assign-reviewers.yml
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
10 changes: 2 additions & 8 deletions .github/workflows/package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand All @@ -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
Expand All @@ -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]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<a href="https://github.com/tektronix/tm_devices/actions/workflows/test-docs.yml"><img alt="Docs testing status" src="https://github.com/tektronix/tm_devices/actions/workflows/test-docs.yml/badge.svg?branch=main"></a>
<a href="https://github.com/tektronix/tm_devices/actions/workflows/package-build.yml"><img alt="Package build status" src="https://github.com/tektronix/tm_devices/actions/workflows/package-build.yml/badge.svg?branch=main"></a>
<a href="https://codecov.io/gh/tektronix/tm_devices"><img alt="Coverage status" src="https://codecov.io/gh/tektronix/tm_devices/branch/main/graph/badge.svg"></a>
<a href="https://www.codefactor.io/repository/github/tektronix/tm_devices"><img alt="CodeFactor grade" src="https://www.codefactor.io/repository/github/tektronix/tm_devices/badge" /></a>
<a href="https://github.com/tektronix/tm_devices/actions/workflows/codeql-analysis.yml"><img alt="CodeQL status" src="https://github.com/tektronix/tm_devices/actions/workflows/codeql-analysis.yml/badge.svg?branch=main"></a>
<a href="https://github.com/pre-commit/pre-commit"><img alt="pre-commit enabled" src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit"></a>
<a href="https://results.pre-commit.ci/latest/github/tektronix/tm_devices/main"><img alt="pre-commit status" src="https://results.pre-commit.ci/badge/github/tektronix/tm_devices/main.svg"></a>
Expand Down

0 comments on commit 5bb3a95

Please sign in to comment.