Skip to content

Commit

Permalink
Merge ea5ed45 into 7f75fe3
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlees committed Dec 1, 2020
2 parents 7f75fe3 + ea5ed45 commit e95a9af
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
python-version: 3.7

- name: Install dependencies
run: |
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/pypi_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: pypi_upload

on:
release:
types: created

jobs:
build:
name: PyPI Upload
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2

- name: Install latest pip, setuptools, twine + wheel
run: |
python -m pip install --upgrade pip setuptools twine wheel
- name: Build wheels
run: |
python setup.py bdist_wheel
python setup.py sdist
- name: Upload to PyPI via Twine
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload --verbose -u '__token__' dist/*
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
types: [python]

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
Expand All @@ -23,8 +23,8 @@ repos:
- id: mypy
exclude: ^docs/conf.py

- repo: https://github.com/prettier/prettier
rev: 1.19.1
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]

0 comments on commit e95a9af

Please sign in to comment.