Skip to content

Commit

Permalink
add codeCov GitHub Action job
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonEhrig committed Jan 23, 2024
1 parent b0b0a0a commit b69d09f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/codeCoverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CodeCov
on: [push, pull_request]
jobs:
code-coverage:
runs-on: ubuntu-latest
env:
OS: ubuntu-latest
PYTHON: '3.12'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install bashi
run: |
pip install .
- name: Generate Report
run: |
pip install coverage
coverage run
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This project will be the successor to the [alpaka-job-matrix-library](https://gi

# bashi

[![codecov](https://codecov.io/github/alpaka-group/bashi/graph/badge.svg?token=QEF8G02ZST)](https://codecov.io/github/alpaka-group/bashi)

A library to provide a job generator for CI's for alpaka based projects.

# Developing
Expand Down
Empty file added codecov.yml
Empty file.

0 comments on commit b69d09f

Please sign in to comment.