Skip to content

Merge pull request #25 from theme-ontology/odinlake-patch-2 #76

Merge pull request #25 from theme-ontology/odinlake-patch-2

Merge pull request #25 from theme-ontology/odinlake-patch-2 #76

Workflow file for this run

name: On PR Merged, Test Coverage
on:
push:
branches: [ main ]
pull_request_target:
branches: [ main ]
types: [ closed ]
jobs:
build-testcoverage:
if: github.event.pull_request.merged == true || github.event_name == 'push'
strategy:
matrix:
python-version: ["3.x"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Test with PyTest
run: pytest --cov-report=xml --cov-fail-under=100 --cov=totolo tests/
- name: Upload Coverage Report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
files: ./coverage.xml
flags: unittests
fail_ci_if_error: true
name: codecov-umbrella
verbose: true