From 58ffea0b6e218390532dadb47a5d02d87de250be Mon Sep 17 00:00:00 2001 From: Joseph D Hughes Date: Sun, 16 Jun 2024 12:26:26 -0500 Subject: [PATCH] * update --- .github/workflows/ci.yml | 36 +++++++++++++++++++++++++++++++----- autotest/test_cli_cmds.py | 1 - autotest/test_mfusg.py | 2 +- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7da6991..a11d005 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,7 +83,18 @@ jobs: with: name: failed-schedule-${{ matrix.os }}-${{ matrix.FC }}-${{ matrix.FC_V }} path: ./autotest/.failed - + + - name: Print coverage report before upload + run: | + pixi run coverage-report + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + with: + file: ./autotest/coverage.xml + pymake-os-compiler: name: pymake CI gcc on different OSs @@ -145,8 +156,13 @@ jobs: if: runner.os == 'Windows' run: choco install make - - name: Run pytest on Linux and MacOS - if: runner.os != 'Windows' + - name: test on Linux + if: runner.os == 'Linux' + run: | + pixi run autotest + + - name: test on MacOS + if: runner.os == 'macOS' run: | pixi run autotest-base @@ -154,7 +170,7 @@ jobs: if: runner.os == 'Windows' shell: pwsh run: | - pixi run autotest-Windows + pixi run autotest-base - name: Upload failed test output if: failure() @@ -163,4 +179,14 @@ jobs: name: failed-${{ matrix.os }}-${{ matrix.FC }}-${{ matrix.FC_V }} path: ./autotest/.failed - + - name: Print coverage report before upload + run: | + pixi run coverage-report + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + with: + file: ./autotest/coverage.xml + diff --git a/autotest/test_cli_cmds.py b/autotest/test_cli_cmds.py index 6adb089..4e63589 100644 --- a/autotest/test_cli_cmds.py +++ b/autotest/test_cli_cmds.py @@ -83,7 +83,6 @@ def test_make_program_all(module_tmpdir) -> None: "--appdir", str(module_tmpdir / "all"), "--verbose", - "--dryrun", ] run_cli_cmd(cmd) diff --git a/autotest/test_mfusg.py b/autotest/test_mfusg.py index 5488b90..ab8c3d9 100644 --- a/autotest/test_mfusg.py +++ b/autotest/test_mfusg.py @@ -68,7 +68,7 @@ def run_mfusg(fn, exe): @pytest.mark.dependency(name="download") -@pytest.mark.regrression +@pytest.mark.regression def test_download(pm, pm_gsi, module_tmpdir, targets): pm.download_target(targets[0], download_path=module_tmpdir) assert pm.download, f"could not download {targets[0]}"