Skip to content

chore(deps): bump the all group with 3 updates #133

chore(deps): bump the all group with 3 updates

chore(deps): bump the all group with 3 updates #133

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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
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@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
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@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
directory: ./coverage-xml
token: ${{ secrets.CODECOV_TOKEN }} # To bypass public API rate limiting, see https://github.com/codecov/codecov-action/issues/557