-
Notifications
You must be signed in to change notification settings - Fork 23
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
24217ad
commit f885858
Showing
9 changed files
with
847 additions
and
104 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 |
---|---|---|
|
@@ -16,15 +16,12 @@ 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 linters | ||
run: | | ||
source $(dmenv show:bin_path)/activate | ||
python lint.py | ||
python -m poetry run python lint.py |
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 |
---|---|---|
|
@@ -21,21 +21,20 @@ 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 | ||
python -m poetry run pytest --cov . --cov-report xml | ||
- 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
Oops, something went wrong.