diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..bfa27cb --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,32 @@ +## Issue that this pull request solves + +Closes: # (issue number) + +## Proposed changes + +### Brief description of what is fixed or changed + +## Types of changes + +_Put an `x` in the boxes that apply_ + +- [ ] Bugfix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) +- [ ] Other (please describe): + +## Checklist + +_Put an `x` in the boxes that apply_ + +- [ ] My code follows the [style guidelines of this project](https://docs.google.com/document/d/1GI2Hile8UbGZ82gFe1y4wAVPcNPXip1cmXTzog1S41U/edit) +- [ ] I have performed a self-review of my own code +- [ ] I have created new branch for this pull request +- [ ] I have commented my code, particularly in hard-to-understand areas +- [ ] I have made corresponding changes to the documentation +- [ ] My changes generate no new warnings +- [ ] My changes does not break the current system and it passes all the current test cases. + +## Other information + +Any other information that is important to this pull request diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b4ea66c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Deploy to PyPI + +on: + release: + types: + - created + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.x + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + + - name: Build and publish to PyPI + run: | + python setup.py sdist bdist_wheel + twine upload dist/* + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}