-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from hotzenklotz/py3
Update to Python 3
- Loading branch information
Showing
28 changed files
with
1,127 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,3 +66,9 @@ target/ | |
recipes | ||
sessions | ||
uwsgi.ini | ||
|
||
.mypy_cache | ||
.pytest_cache | ||
|
||
# VSCode | ||
.vscode |
Oops, something went wrong.