Skip to content

Commit

Permalink
ci: fix schedule for windows (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs committed Jun 18, 2024
1 parent baa302e commit e60412a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ jobs:
matrix:
include:
# test latest gcc and python
- {os: ubuntu-latest, FC: gcc, FC_V: 13}
- {os: macos-latest, FC: gcc, FC_V: 13}
- {os: windows-latest, FC: gcc, FC_V: 13}
- {os: ubuntu-latest, FC: gcc, FC_V: 13, shell: bash}
- {os: macos-latest, FC: gcc, FC_V: 13, shell: bash}
- {os: windows-latest, FC: gcc, FC_V: 13, shell: pwsh}
# test latest python and intel-classic
- {os: ubuntu-latest, FC: intel-classic, FC_V: 2021.7}
- {os: macos-13, FC: intel-classic, FC_V: 2021.7}
- {os: windows-2019, FC: intel-classic, FC_V: 2021.7}
- {os: ubuntu-latest, FC: intel-classic, FC_V: 2021.7, shell: bash}
- {os: macos-13, FC: intel-classic, FC_V: 2021.7, shell: bash}
- {os: windows-2019, FC: intel-classic, FC_V: 2021.7, shell: pwsh}
# test latest python and previous gcc
- {os: ubuntu-latest, FC: gcc, FC_V: 12}
- {os: ubuntu-latest, FC: gcc, FC_V: 11}
- {os: ubuntu-latest, FC: gcc, FC_V: 12, shell: bash}
- {os: ubuntu-latest, FC: gcc, FC_V: 11, shell: bash}
defaults:
run:
shell: bash
shell: ${{ matrix.shell }}

steps:
- name: Checkout repo
Expand Down Expand Up @@ -91,7 +91,6 @@ jobs:
- name: test on Windows
if: runner.os == 'Windows'
shell: pwsh
run: |
pixi run autotest-base
Expand Down Expand Up @@ -122,16 +121,16 @@ jobs:
matrix:
include:
# test latest gcc and python
- {os: ubuntu-latest, FC: gcc, FC_V: 13}
- {os: macos-latest, FC: gcc, FC_V: 13}
- {os: windows-latest, FC: gcc, FC_V: 13}
- {os: ubuntu-latest, FC: gcc, FC_V: 13, shell: bash}
- {os: macos-latest, FC: gcc, FC_V: 13, shell: bash}
- {os: windows-latest, FC: gcc, FC_V: 13, shell: pwsh}
# test latest python and intel
- {os: ubuntu-latest, FC: intel-classic, FC_V: 2021.7}
- {os: macos-13, FC: intel-classic, FC_V: 2021.7}
- {os: windows-2019, FC: intel-classic, FC_V: 2021.7}
- {os: ubuntu-latest, FC: intel-classic, FC_V: 2021.7, shell: bash}
- {os: macos-13, FC: intel-classic, FC_V: 2021.7, shell: bash}
- {os: windows-2019, FC: intel-classic, FC_V: 2021.7, shell: pwsh}
defaults:
run:
shell: bash
shell: ${{ matrix.shell }}

steps:
- name: Checkout repo
Expand Down Expand Up @@ -170,13 +169,13 @@ jobs:
- name: Run scheduled tests
run: |
pixi run autotest-schedule
- name: Upload failed test output
if: failure()
uses: actions/upload-artifact@v4
with:
name: failed-schedule-${{ matrix.os }}-${{ matrix.FC }}-${{ matrix.FC_V }}
path: ./autotest/.failed
path: autotest/.failed

- name: Print coverage report before upload
run: |
Expand Down
6 changes: 3 additions & 3 deletions autotest/test_cli_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_make_program(function_tmpdir, target: str) -> None:
"make-program",
target,
"--appdir",
str(function_tmpdir),
".",
"--verbose",
]
run_cli_cmd(cmd)
Expand All @@ -68,7 +68,7 @@ def test_make_program_double(function_tmpdir) -> None:
"--double",
"--verbose",
"--appdir",
str(function_tmpdir),
".",
]
run_cli_cmd(cmd)

Expand All @@ -81,7 +81,7 @@ def test_make_program_all(module_tmpdir) -> None:
"make-program",
":",
"--appdir",
str(module_tmpdir / "all"),
".",
"--verbose",
]
run_cli_cmd(cmd)
Expand Down
2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ coverage-report = { cmd = "coverage report", cwd = "autotest"}

# release
update-version = { cmd = "python scripts/update_version.py -v"}
create-codejson = { cmd = "make-code-json" }
create-codejson = { cmd = "make-code-json" }

0 comments on commit e60412a

Please sign in to comment.