Skip to content

Measure coverage

Measure coverage #9

Workflow file for this run

name: tests
on:
- push
- pull_request
jobs:
tests:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
run: |
pip install requests pytest-cov coveralls mock
pip install -e .
- name: Set up graylog
run: |
docker compose -f tests/config/docker-compose.yml up -d
sleep 120
./tests/config/bootstrap
- name: Run tests
run: pytest -v --cov=pygelf
- name: Coveralls parallel
uses: coverallsapp/github-action@v2
with:
flag-name: ${{ matrix.python-version }}
parallel: true
coverage:
needs:
- tests
runs-on: ubuntu-22.04
steps:
- name: Coveralls finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true