Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Nov 22, 2022
1 parent 00a32d0 commit d2957a6
Show file tree
Hide file tree
Showing 54 changed files with 564 additions and 841 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
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
21 changes: 21 additions & 0 deletions .github/workflows/flake8.yml
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
32 changes: 32 additions & 0 deletions .github/workflows/pypi.yml
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 }}
29 changes: 29 additions & 0 deletions .github/workflows/unit_tests.yml
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 }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
__pycache__/
*.py[cod]
*$py.class
projects
stop.stop

# C extensions
*.so
Expand Down
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion demos/plot_example/requirements.txt

This file was deleted.

57 changes: 0 additions & 57 deletions demos/pretend_energyplus/calibrate_walltemperatures.py

This file was deleted.

43 changes: 0 additions & 43 deletions demos/wall_temperature/optimize_resistance.py

This file was deleted.

Loading

0 comments on commit d2957a6

Please sign in to comment.