Skip to content

Commit

Permalink
Merge cd4d16c into a731395
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwestcott committed Aug 27, 2020
2 parents a731395 + cd4d16c commit 0aa1d59
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 7 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/tests.yml
Expand Up @@ -7,12 +7,21 @@ on:
pull_request:

jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mypy pydantic
- run: mypy runnel

tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]

services:
redis:
image: redis
Expand All @@ -23,7 +32,6 @@ jobs:
--health-retries 5
ports:
- 6379:6379

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand All @@ -35,8 +43,25 @@ jobs:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- run: poetry install -E fast
- run: poetry run pytest
- run: poetry run coverage run -m pytest
env:
REDIS_HOST: localhost
REDIS_PORT: 6379
RUNNEL_LOG_LEVEL: debug
- run: poetry run coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
COVERALLS_PARALLEL: true

coveralls:
needs: tests
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip install coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86 changes: 82 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Expand Up @@ -40,6 +40,7 @@ pytest-mock = "^3.2.0"
freezegun = "^0.3.15"
mypy = "^0.782"
tox = "^3.19.0"
coveralls = "^2.1.2"

[tool.poetry.scripts]
runnel = "runnel.cli:cli"
Expand Down

0 comments on commit 0aa1d59

Please sign in to comment.