Skip to content

Commit

Permalink
Merge pull request #3 from hotzenklotz/py3
Browse files Browse the repository at this point in the history
Update to Python 3
  • Loading branch information
hotzenklotz authored Apr 20, 2020
2 parents 6b87e53 + 90e7185 commit c87c4cf
Show file tree
Hide file tree
Showing 28 changed files with 1,127 additions and 325 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test_lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test and Lint

on: [push]

jobs:
build_test_deploy:
runs-on: ubuntu-18.04
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7]

steps:
- uses: actions/checkout@v1

- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64' # (x64 or x86)

- name: Setup venv
run: python -m venv ~/.venv

- name: Install dependencies
run: |
source ~/.venv/bin/activate
pip install -r requirements-dev.txt
- name: Check code formatting
run: |
source ~/.venv/bin/activate
python -m black .
- name: Lint code
run: |
source ~/.venv/bin/activate
./lint.sh
- name: Check typing
run: |
source ~/.venv/bin/activate
python -m mypy .
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,9 @@ target/
recipes
sessions
uwsgi.ini

.mypy_cache
.pytest_cache

# VSCode
.vscode
Loading

0 comments on commit c87c4cf

Please sign in to comment.