forked from SchrodingersGat/KiBoM
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds github workflow for PEP style checks
- Loading branch information
1 parent
94c80a3
commit e412316
Showing
2 changed files
with
66 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,32 @@ | ||
# .github/release.yml | ||
|
||
changelog: | ||
exclude: | ||
labels: | ||
- translation | ||
- documentation | ||
categories: | ||
- title: Breaking Changes | ||
labels: | ||
- Semver-Major | ||
- breaking | ||
- title: Security Patches | ||
labels: | ||
- security | ||
- title: New Features | ||
labels: | ||
- Semver-Minor | ||
- enhancement | ||
- title: Bug Fixes | ||
labels: | ||
- Semver-Patch | ||
- bug | ||
- title: Devops / Setup Changes | ||
labels: | ||
- docker | ||
- setup | ||
- demo | ||
- CI | ||
- 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,34 @@ | ||
name: PEP Style Checks | ||
|
||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.8] | ||
|
||
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 coverage | ||
pip install xlsxwriter | ||
- name: Style Checks | ||
run: | | ||
flake8 . | ||
bash ./run-tests.sh | ||
- name: Test Build | ||
run: | | ||
python setup.py bdist_wheel --universal | ||
- name: Upload Report | ||
run: | | ||
coveralls --service=github |