-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from SchrodingersGat/github-workflow
Adds github workflow for PEP style checks
- Loading branch information
Showing
6 changed files
with
98 additions
and
5 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,27 @@ | ||
name: Build Package | ||
|
||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
build: | ||
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 -U -r test/requirements.txt | ||
- name: Build Python Package | ||
run: | | ||
pip install --upgrade pip wheel setuptools | ||
python setup.py bdist_wheel --universal |
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,33 @@ | ||
name: PEP Style Checks | ||
|
||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
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 -U -r test/requirements.txt | ||
- name: Style Checks | ||
run: | | ||
flake8 . | ||
bash ./run-tests.sh | ||
- name: Upload Report | ||
run: | | ||
coveralls --service=github |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Python packages required for unit testing | ||
|
||
flake8==3.3.0 # PEP checking | ||
coverage==4.0.3 # Unit test coverage | ||
python-coveralls==2.9.1 # Coveralls linking (for Travis) | ||
flake8>=6.0.0 # PEP checking | ||
coverage # Unit test coverage | ||
coveralls>=3.3.0 # Coveralls.io linking | ||
xlsxwriter>=3.0.0 # Excel file writing |