Skip to content

ci: Comprehensive workflow improvements and new actions #3

ci: Comprehensive workflow improvements and new actions

ci: Comprehensive workflow improvements and new actions #3

Workflow file for this run

name: Coverage Report
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
coverage:
name: Generate Coverage Report
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests with coverage
run: npm test
env:
CI: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./**/coverage/lcov.info
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
- name: Coverage Comment
uses: py-cov-action/python-coverage-comment-action@v3
if: github.event_name == 'pull_request'
with:
GITHUB_TOKEN: ${{ github.token }}
MINIMUM_GREEN: 60
MINIMUM_ORANGE: 40