Skip to content
Draft
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
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,26 @@ jobs:
- uses: actions/checkout@v7
- name: "Run resolver tests"
run: python3 -m unittest discover -s test -p 'test_resolve_monorepo_tagbot.py' -v

workflow-group-tests:
name: "Test group (${{ matrix.os }}, ${{ matrix.group-env-name }})"
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
group-env-name: GROUP
- os: windows-latest
group-env-name: GROUP
- os: windows-latest
group-env-name: SCIML_WORKFLOW_TEST_GROUP
uses: ./.github/workflows/tests.yml
with:
julia-version: "1"
os: ${{ matrix.os }}
group: Core
group-env-name: ${{ matrix.group-env-name }}
project: test/fixtures/WorkflowGroupProbe
num-threads: "1"
buildpkg: false
coverage: false
1 change: 1 addition & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
run: julia --color=yes --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'

- name: "Build and Deploy Documentation"
shell: bash
env:
# Documenter decides it can deploy when GITHUB_TOKEN or DOCUMENTER_KEY is merely
# non-empty (`auth_ok` in Documenter's `deploy_folder`). A read-only token still
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
version: "${{ inputs.julia-version }}"

- name: "Compute effective downgrade skip list"
shell: bash
run: |
# Effective skip = Julia stdlibs ∪ the caller's `skip` input (extra
# skips). Standard libraries are always in-tree at their pinned
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ jobs:
# name must be dynamic, which the env: map can't express, so write it to
# $GITHUB_ENV here.
if: "${{ steps.prerelease-gate.outputs.run != 'false' }}"
shell: bash
run: echo "${{ inputs.group-env-name }}=${{ inputs.group }}" >> "$GITHUB_ENV"

- name: "Run tests ${{ inputs.self-hosted && '' || format('on {0}', inputs.os) }} with Julia v${{ inputs.julia-version }}"
Expand Down
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reusable workflow validation

- Declare `shell: bash` on Bash `run:` steps in workflows that accept Windows runners, including writes to GitHub environment/output/path files and inline environment assignments.
- Validate workflows with `actionlint`, helper scripts with `julia --project=. test/runtests.jl` and `python3 -m unittest discover -s test -p 'test_*.py' -v`, and group propagation with the `workflow-group-tests` CI matrix.
9 changes: 9 additions & 0 deletions test/fixtures/WorkflowGroupProbe/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name = "WorkflowGroupProbe"
uuid = "673c1741-4a25-48f2-9848-e60578bc4957"
version = "0.1.0"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
2 changes: 2 additions & 0 deletions test/fixtures/WorkflowGroupProbe/src/WorkflowGroupProbe.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module WorkflowGroupProbe
end
11 changes: 11 additions & 0 deletions test/fixtures/WorkflowGroupProbe/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Test

@testset "Workflow test group" begin
group = get(ENV, "GROUP", "")
custom_group = get(ENV, "SCIML_WORKFLOW_TEST_GROUP", "")
selected_group = isempty(custom_group) ? group : custom_group
println("GROUP=", repr(group))
println("SCIML_WORKFLOW_TEST_GROUP=", repr(custom_group))
println("Selected test group=", repr(isempty(selected_group) ? "All" : selected_group))
@test selected_group == "Core"
end
Loading