-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Poetry GH action with plain Python
- Loading branch information
Sergey Sokolov
committed
Mar 13, 2020
1 parent
3f78686
commit 65ad3f4
Showing
1 changed file
with
18 additions
and
10 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 |
---|---|---|
@@ -1,20 +1,28 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install | ||
uses: abatilo/[email protected] | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python_version: 3.8.0 | ||
poetry_version: 1.0.5 | ||
args: install | ||
- name: Lint | ||
run: | ||
poetry run mypy c4p2n | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry>=1.0.0 | ||
poetry config virtualenvs.create false | ||
poetry install | ||
- name: Lint with black | ||
run: | | ||
poetry run black --check c4p2n | ||
- name: Check types with mypy | ||
run: | | ||
poetry run mypy c4p2n |