Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix schedule for windows #193

Merged
merged 6 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" }
Loading