Skip to content

Commit

Permalink
Add github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Kulyov <[email protected]>
  • Loading branch information
pkulev committed Jul 23, 2020
1 parent 48606f6 commit fcb053f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: dschep/[email protected]

- name: Install dependencies
run: poetry install

- name: Code quality
run: poetry run pylint pytopsort

- name: Check formatting
run: poetry run black . --check

- name: Check types
run: poetry run pytest --mypy --mypy-ignore-missing-imports -s -v pytopsort/ tests/

- name: Run tests
run: poetry run pytest --cov=./pytopsort --cov-report=xml -s -v tests

- name: Upload coverage
uses: codecov/codecov-action@v1

0 comments on commit fcb053f

Please sign in to comment.