-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a series of new pre-commit hooks and GitHub Actions (#116)
* Add a series of new pre-commit hooks and GitHub Actions * Style
- Loading branch information
Showing
36 changed files
with
3,163 additions
and
1,257 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,20 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "06:00" | ||
|
||
- package-ecosystem: pip | ||
directory: "/.github/workflows" | ||
schedule: | ||
interval: daily | ||
time: "06:00" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "06:00" |
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
--- | ||
- name: "breaking-change" | ||
color: ee0701 | ||
description: "A breaking change for existing users" | ||
- name: "bug" | ||
color: ee0701 | ||
description: "Bugs or issues which will cause a problem for users" | ||
- name: "documentation" | ||
color: 0052cc | ||
description: "Project documentation" | ||
- name: "enhancement" | ||
color: 1d76db | ||
description: "Enhancement of the code, not introducing new features." | ||
- name: "maintenance" | ||
color: 2af79e | ||
description: "Generic library tasks" | ||
- name: "dependencies" | ||
color: 1d76db | ||
description: "Upgrade or downgrade of project dependencies" | ||
|
||
- name: "in-progress" | ||
color: fbca04 | ||
description: "Issue is currently being resolved by a developer" | ||
- name: "stale" | ||
color: fef2c0 | ||
description: "There has not been activity on this issue or PR for some time" | ||
- name: "no-stale" | ||
color: fef2c0 | ||
description: "This issue or PR is exempted from the stale bot" | ||
|
||
- name: "security" | ||
color: ee0701 | ||
description: "Marks a security issue that needs to be resolved ASAP" | ||
- name: "incomplete" | ||
color: fef2c0 | ||
description: "Marks a PR or issue that is missing information" | ||
- name: "invalid" | ||
color: fef2c0 | ||
description: "Marks a PR or issue that is missing information" | ||
|
||
- name: "help-wanted" | ||
color: 0e8a16 | ||
description: "Needs a helping hang or expertise in order to resolve" |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
--- | ||
name: CodeQL | ||
|
||
"on": | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- dev | ||
- main | ||
|
||
workflow_dispatch: | ||
|
||
schedule: | ||
- cron: "30 1 * * 0" | ||
|
||
jobs: | ||
codeql: | ||
name: Scanning | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⤵️ Check out code from GitHub | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🏗 Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
|
||
- name: 🚀 Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
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,24 @@ | ||
--- | ||
name: Sync Labels | ||
|
||
"on": | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/labels.yml | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
labels: | ||
name: ♻️ Sync labels | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⤵️ Check out code from GitHub | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🚀 Run Label Syncer | ||
uses: micnncim/action-label-syncer@v1.3.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,21 @@ | ||
--- | ||
name: Lock Closed Issues and PRs | ||
|
||
"on": | ||
schedule: | ||
- cron: "0 9 * * *" | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
lock: | ||
name: 🔒 Lock! | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/lock-threads@v3.0.0 | ||
with: | ||
github-token: ${{ github.token }} | ||
issue-inactive-days: "30" | ||
issue-lock-reason: "" | ||
pr-inactive-days: "1" | ||
pr-lock-reason: "" |
14 changes: 7 additions & 7 deletions
14
.github/workflows/publish.yaml → .github/workflows/publish.yml
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,26 +1,26 @@ | ||
--- | ||
name: "Publish to PyPI" | ||
name: Publish to PyPI | ||
|
||
on: | ||
"on": | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
publish_to_pypi: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
- name: ⤵️ Check out code from GitHub | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.11 | ||
- name: 🏗 Set up Python 3.9 | ||
id: python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
python-version: 3.9 | ||
|
||
- name: Publish to PyPI | ||
- name: 🚀 Publish to PyPi | ||
run: | | ||
pip install poetry | ||
poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_KEY }} |
Oops, something went wrong.