-
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
00a32d0
commit d2957a6
Showing
54 changed files
with
564 additions
and
841 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,6 @@ | ||
[run] | ||
source = mypyopt | ||
|
||
[report] | ||
# this file generates a graph, not testing it during unit testing | ||
omit = *mypyopt/demos/plot_example/main.py |
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: Flake8 | ||
|
||
on: [push] | ||
|
||
jobs: | ||
flake8: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v2 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 # v4.2.0 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install Pip Dependencies | ||
run: pip install flake8 | ||
|
||
- name: Run Flake8 | ||
run: flake8 mypyopt |
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: Release_to_PyPi | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 # v4.2.0 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install Pip Dependencies | ||
shell: bash | ||
run: pip install -r requirements.txt | ||
|
||
- name: Build the Wheel | ||
shell: bash | ||
run: rm -rf dist/ build/ && python3 setup.py bdist_wheel sdist | ||
|
||
- name: Deploy on Test PyPi | ||
uses: pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f # v1.5.1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPIPW }} |
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,29 @@ | ||
name: Run Tests | ||
|
||
on: [push] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
unit_tests: | ||
strategy: | ||
matrix: | ||
os: [ windows-latest, macos-11, ubuntu-20.04, ubuntu-22.04 ] # macos-12 is not playing well with Tk | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 # v4.2.0 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Pip Dependencies | ||
run: pip install -r requirements.txt | ||
- name: Run Tests | ||
run: nosetests | ||
- name: Coveralls | ||
if: ${{ matrix.os == 'ubuntu-22.04' }} | ||
run: coveralls --service=github | ||
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
projects | ||
stop.stop | ||
|
||
# C extensions | ||
*.so | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.