Skip to content

feat: add support for requiring basic finalizers (#1568) #109

feat: add support for requiring basic finalizers (#1568)

feat: add support for requiring basic finalizers (#1568) #109

name: Coverage Linux
on:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- '**.md'
- benchmark/**
- doc/**
- tools/**
- unit-test/**
- .github/**
- '!.github/workflows/coverage-linux.yml'
push:
branches:
- main
paths-ignore:
- '**.md'
- benchmark/**
- doc/**
- tools/**
- unit-test/**
- .github/**
- '!.github/workflows/coverage-linux.yml'
env:
PYTHON_VERSION: '3.11'
NODE_VERSION: '22.x'
permissions:
contents: read
jobs:
coverage-linux:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Environment Information
run: npx envinfo
- name: Install gcovr
run: pip install gcovr==6.0
- name: Install dependencies
run: npm install
- name: Test with coverage
run: |
npm run create-coverage
- name: Generate coverage report (XML)
run: |
npm run report-coverage-xml
- name: Upload
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
directory: ./coverage-xml
token: ${{ secrets.CODECOV_TOKEN }} # To bypass public API rate limiting, see https://github.com/codecov/codecov-action/issues/557