Skip to content

Commit

Permalink
Replace Poetry GH action with plain Python
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Sokolov committed Mar 13, 2020
1 parent 3f78686 commit 65ad3f4
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/lint.yml
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

0 comments on commit 65ad3f4

Please sign in to comment.