2025-02-16 10:07:09 +01:00
|
|
|
---
|
|
|
|
name: coverage
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
code-coverage:
|
2025-02-16 10:14:11 +01:00
|
|
|
if: github.repository == 'linux-nvme/libnvme'
|
2025-02-16 10:07:09 +01:00
|
|
|
name: code coverage
|
|
|
|
runs-on: ubuntu-latest
|
2025-02-16 10:11:14 +01:00
|
|
|
container:
|
2025-02-16 10:51:02 +01:00
|
|
|
image: ghcr.io/linux-nvme/debian.python:latest
|
2025-02-16 10:07:09 +01:00
|
|
|
steps:
|
2025-02-16 10:11:14 +01:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: build
|
|
|
|
run: |
|
|
|
|
scripts/build.sh coverage
|
2025-02-16 10:20:15 +01:00
|
|
|
- uses: codecov/codecov-action@v4
|
2025-02-16 10:07:09 +01:00
|
|
|
with:
|
2025-02-16 10:51:28 +01:00
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
fail_ci_if_error: true
|