Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Add separate codecov GH action #3220

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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 }}
7 changes: 0 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,8 @@ jobs:
run: |
./bootstrap.sh
- name: Generic Unittests
if: matrix.python-version != '3.8'
run: |
./test_reframe.py
- name: Generic Unittests and Coverage Report
if: matrix.python-version == '3.8'
run: |
python -m pip install coverage
coverage run --source=reframe ./test_reframe.py
coverage report -m

unittest-py36:
runs-on: ubuntu-20.04
Expand Down
4 changes: 2 additions & 2 deletions reframe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@


# Import important names for user tests
from reframe.core.pipeline import * # noqa: F401, F403
from reframe.core.decorators import * # noqa: F401, F403
from reframe.core.pipeline import * # noqa: F401, F403, E402
from reframe.core.decorators import * # noqa: F401, F403, E402
Loading