Skip to content

Commit

Permalink
Merge pull request #390 from bcgov/add-coverage-reports
Browse files Browse the repository at this point in the history
Add Code Coverage Reports
  • Loading branch information
esune authored Nov 20, 2023
2 parents 9cbd364 + 0afe52e commit ac7c5e7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/controller_unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ name: Controller Unit Tests
on:
push:
branches:
- '2.0-development'
- "main"
pull_request:
branches:
- '2.0-development'

- "main"

jobs:
build:
Expand All @@ -16,7 +15,6 @@ jobs:
strategy:
matrix:
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -39,4 +37,20 @@ jobs:
- name: Test with pytest
working-directory: ./oidc-controller
run: |
pytest --log-cli-level=INFO
pytest --log-cli-level=INFO --cov --cov-report lcov
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: python-${{ matrix.python-version }}
parallel: true
code-coverage:
name: Generate Code Coverage
needs: build
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "python-3.11"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

[![unit-tests](https://github.com/bcgov/vc-authn-oidc/actions/workflows/controller_unittests.yml/badge.svg?branch=2.0-development&event=push)](https://github.com/bcgov/vc-authn-oidc/actions/workflows/controller_unittests.yml)
[![Coverage Status](https://coveralls.io/repos/github/bcgov/vc-authn-oidc/badge.svg?branch=main)](https://coveralls.io/repos/github/bcgov/vc-authn-oidc/badge.svg?branch=main)

# Verifiable Credential Authentication with OpenID Connect (VC-AuthN OIDC)

Expand Down Expand Up @@ -149,4 +150,4 @@ This is a sample debugger launch configuration for VSCode that can be used by ad
}
]
}
```
```

0 comments on commit ac7c5e7

Please sign in to comment.