Skip to content

Commit

Permalink
Add github workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Nov 6, 2024
1 parent d3fa801 commit 618036b
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/release.yml
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:
- "*"
21 changes: 21 additions & 0 deletions .github/workflows/frontend.yaml
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
28 changes: 28 additions & 0 deletions .github/workflows/pep.yaml
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 .
44 changes: 44 additions & 0 deletions .github/workflows/pypi.yaml
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

0 comments on commit 618036b

Please sign in to comment.