Skip to content

Commit

Permalink
* update
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs committed Jun 16, 2024
1 parent 133ab83 commit 58ffea0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -145,16 +156,21 @@ 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
- name: test on Windows
if: runner.os == 'Windows'
shell: pwsh
run: |
pixi run autotest-Windows
pixi run autotest-base
- name: Upload failed test output
if: failure()
Expand All @@ -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

1 change: 0 additions & 1 deletion autotest/test_cli_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def test_make_program_all(module_tmpdir) -> None:
"--appdir",
str(module_tmpdir / "all"),
"--verbose",
"--dryrun",
]
run_cli_cmd(cmd)

Expand Down
2 changes: 1 addition & 1 deletion autotest/test_mfusg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]}"
Expand Down

0 comments on commit 58ffea0

Please sign in to comment.