diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml new file mode 100644 index 0000000000..f8c415e025 --- /dev/null +++ b/.github/workflows/codecov.yaml @@ -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/codecov-action@v4.2.0 + # env: + # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 966f2b2768..3219688590 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/reframe/__init__.py b/reframe/__init__.py index c330b5a876..da85b977cf 100644 --- a/reframe/__init__.py +++ b/reframe/__init__.py @@ -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