Skip to content

3.24.3

3.24.3 #3

Workflow file for this run

name: Develop Push
on:
push:
branches:
- develop
jobs:
CodeCoverage:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.12']
os: ['ubuntu-latest']
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
name: Code Coverage OS ${{ matrix.os }} - Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Need to update if we support other OS's
- name: Cache PIP Install
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-coverage-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-coverage
- name: Make Deps
run: |
make deps
pip install pytest
pip install pytest-cov
- name: Generate coverage report
continue-on-error: true
run: |
coverage run --source brewtils -m pytest test --tb=no
coverage report -m
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1