Skip to content

Commit

Permalink
Setup github action workflows for lint and release.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpotter92 committed Feb 24, 2021
1 parent 01d593f commit 90992cb
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 5 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint check project

on: push

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Black Check
uses: jpetrucciani/[email protected]
- name: python-isort
uses: isort/[email protected]
with:
isortVersion: 5.7.0
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload package to pypi

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- 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
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel bdist_egg
twine upload dist/*
47 changes: 42 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Created by https://www.toptal.com/developers/gitignore/api/emacs,python,pycharm+all,code
# Edit at https://www.toptal.com/developers/gitignore?templates=emacs,python,pycharm+all,code
# Created by https://www.toptal.com/developers/gitignore/api/emacs,intellij+all,vim,code,python,git
# Edit at https://www.toptal.com/developers/gitignore?templates=emacs,intellij+all,vim,code,python,git

### Code ###
.vscode/*
Expand All @@ -22,6 +22,7 @@ tramp
# Org-mode
.org-id-locations
*_archive
ltximg/**

# flymake-mode
*_flymake.*
Expand Down Expand Up @@ -59,7 +60,22 @@ flycheck_*.el
/network-security.data


### PyCharm+all ###
### Git ###
# Created by git for backups. To disable backups in Git:
# $ git config --global mergetool.keepBackup false
*.orig

# Created by git when using merge tools for conflicts
*.BACKUP.*
*.BASE.*
*.LOCAL.*
*.REMOTE.*
*_BACKUP_*.txt
*_BASE_*.txt
*_LOCAL_*.txt
*_REMOTE_*.txt

### Intellij+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

Expand Down Expand Up @@ -132,7 +148,7 @@ fabric.properties
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### PyCharm+all Patch ###
### Intellij+all Patch ###
# Ignores the whole .idea folder and all .iml files
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360

Expand Down Expand Up @@ -287,4 +303,25 @@ dmypy.json
# profiling data
.prof

# End of https://www.toptal.com/developers/gitignore/api/emacs,python,pycharm+all,code
### Vim ###
# Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim
Sessionx.vim

# Temporary
.netrwhist
# Auto-generated tag files
tags
# Persistent undo
[._]*.un~

# End of https://www.toptal.com/developers/gitignore/api/emacs,intellij+all,vim,code,python,git

0 comments on commit 90992cb

Please sign in to comment.