Skip to content

Commit

Permalink
ci: fix schedule for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs committed Jun 18, 2024
1 parent baa302e commit 26fa540
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 20 deletions.
41 changes: 23 additions & 18 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 All @@ -115,23 +114,23 @@ jobs:

pymake-schedule:
name: pymake scheduled
if: ${{ github.event_name == 'schedule' }}
# if: ${{ github.event_name == 'schedule' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
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-2019, 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 @@ -171,6 +170,12 @@ jobs:
run: |
pixi run autotest-schedule
- name: Upload failed test output
if: failure()
run: |
pwd
ls -h autotest/
- name: Upload failed test output
if: failure()
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion autotest/test_cli_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_make_program_all(module_tmpdir) -> None:
"make-program",
":",
"--appdir",
str(module_tmpdir / "all"),
str(module_tmpdir),
"--verbose",
]
run_cli_cmd(cmd)
Expand Down
5 changes: 4 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,7 @@ 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" }

[target.win-64.tasks]
autotest-schedule = { cmd = "pytest -v -m='schedule' --durations=0 --cov=pymake --cov-report=xml --basetemp=$RUNNER_TEMP/pytest_temp --keep-failed .failed", cwd = "autotest" }

0 comments on commit 26fa540

Please sign in to comment.