Skip to content

[ci] Add separate codecov GH action #6

[ci] Add separate codecov GH action

[ci] Add separate codecov GH action #6

Workflow file for this run

name: ReFrame CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Code coverage
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Bootstrap reframe
run: ./bootstrap.sh
- name: Run tests and collect coverage
run: |
pip install pytest-cov
./test_reframe.py --cov=reframe --cov-report=xml
- name: Upload coverage reports
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}