Skip to content

Merge pull request #20 from bento-platform/chore/poetry-reconfig #41

Merge pull request #20 from bento-platform/chore/poetry-reconfig

Merge pull request #20 from bento-platform/chore/poetry-reconfig #41

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.8", "3.10" ]
services:
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Set up Python
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pip install poetry
- name: Install dependencies
run: poetry install
- name: Test
run: poetry run pytest -svv --cov=bento_notification_service --cov-branch
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3