-
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.
- Loading branch information
1 parent
d3fa801
commit 618036b
Showing
4 changed files
with
119 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# .github/release.yml | ||
|
||
changelog: | ||
categories: | ||
- title: Breaking Changes | ||
labels: | ||
- Semver-Major | ||
- breaking | ||
- title: New Features | ||
labels: | ||
- Semver-Minor | ||
- enhancement | ||
- title: Bug Fixes | ||
labels: | ||
- Semver-Patch | ||
- bug | ||
- title: Devops / Setup Changes | ||
labels: | ||
- docker | ||
- setup | ||
- demo | ||
- CI | ||
- security | ||
- title: Other Changes | ||
labels: | ||
- "*" |
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 @@ | ||
# Run CI checks for frontend code | ||
name: Frontend CI | ||
|
||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
frontend: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
- name: Build Frontend | ||
run: | | ||
cd frontend | ||
npm install | ||
npm run build --emptyOutDir |
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,28 @@ | ||
name: Style Checks | ||
|
||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.9] | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Deps | ||
run: | | ||
pip install invoke | ||
pip install flake8 | ||
pip install pep8-naming | ||
- name: Style Checks | ||
run: | | ||
flake8 . |
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,44 @@ | ||
# Publish to PyPi package index | ||
|
||
name: PIP Publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
|
||
publish: | ||
name: Publish to PyPi | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
- name: Install Python Dependencies | ||
run: | | ||
pip install --upgrade wheel setuptools twine build | ||
- name: Build Frontend | ||
run: | | ||
cd frontend | ||
npm install | ||
npm run build --emptyOutDir | ||
- name: Build Binary | ||
run: | | ||
python -m build | ||
- name: Publish | ||
run: | | ||
python -m twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
TWINE_REPOSITORY: pypi | ||
|