-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a93735e
commit 4c2ff81
Showing
9 changed files
with
1,369 additions
and
162 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 |
---|---|---|
|
@@ -15,17 +15,15 @@ jobs: | |
with: | ||
python-version: 3.7 | ||
|
||
- name: Install dmenv | ||
uses: TankerHQ/[email protected] | ||
with: | ||
dmenv-version: 0.20.0 | ||
|
||
- name: Prepare project for development | ||
run: dmenv install | ||
run: | | ||
python -m pip install poetry | ||
python -m poetry config virtualenvs.create false | ||
python -m poetry install | ||
- name: Build documentation | ||
run: | | ||
dmenv run -- mkdocs build | ||
poetry run mkdocs build | ||
- name: Deploy to GitHub pages | ||
uses: maxheld83/[email protected] | ||
|
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 |
---|---|---|
|
@@ -16,22 +16,20 @@ jobs: | |
with: | ||
python-version: 3.7 | ||
|
||
- name: Install dmenv | ||
uses: TankerHQ/[email protected] | ||
with: | ||
dmenv-version: 0.20.0 | ||
|
||
- name: Prepare project for development | ||
run: dmenv install | ||
run: | | ||
python -m pip install poetry | ||
python -m poetry config virtualenvs.create false | ||
python -m poetry install | ||
- name: Run black | ||
run: | | ||
dmenv run -- black --check . | ||
poetry run black --check . | ||
- name: Run mypy | ||
run: | | ||
MYPYPATH=stubs dmenv run -- mypy tsrc | ||
MYPYPATH=stubs poetry run mypy tsrc | ||
- name: Run flake8 | ||
run: | | ||
dmenv run -- flake8 . | ||
poetry run flake8 . |
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 |
---|---|---|
|
@@ -24,21 +24,19 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dmenv | ||
uses: TankerHQ/[email protected] | ||
with: | ||
dmenv-version: 0.20.0 | ||
|
||
- name: Prepare project for development | ||
run: dmenv install | ||
run: | | ||
python -m pip install poetry | ||
python -m poetry config virtualenvs.create false | ||
python -m poetry install | ||
- name: Run tests | ||
run: | | ||
# tests run git commands, and they need | ||
# a proper git identity for that | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Tasty Test" | ||
dmenv run -- pytest --cov . --cov-report xml --numprocesses auto | ||
poetry run pytest --cov . --cov-report xml --numprocesses auto | ||
- name: Send coverage to codecov.io | ||
uses: codecov/codecov-action@v1 | ||
|
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
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
Oops, something went wrong.