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