Skip to content

Commit ec41b75

Browse files
ci: update tests workflow to use centralised reusable workflow and auto-suggest format changes (#159)
* ci: update tests workflow to use centralised reusable workflow * ci: remove `FormatCheck` workflow Remove the `FormatCheck` workflow, since code in the repository should always be compliant with the SciML style, thus eliminating the need for automated formatting PRs. * ci(format-check): automatically comment formatting suggestions on PRs * chore: rename to BACKEND_GROUP * revert: rename to BACKEND_GROUP * fix: fallback to GROUP * fix: fallback to GROUP * fix: typo --------- Co-authored-by: Avik Pal <avikpal@mit.edu>
1 parent b864f6b commit ec41b75

File tree

6 files changed

+28
-84
lines changed

6 files changed

+28
-84
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/FormatCheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ on:
1010
jobs:
1111
format-check:
1212
name: "Format Check"
13-
uses: "SciML/.github/.github/workflows/format-check.yml@v1"
13+
uses: "SciML/.github/.github/workflows/format-suggestions-on-pr.yml@v1"

.github/workflows/FormatPR.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/Tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Tests"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- 'docs/**'
9+
push:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- 'docs/**'
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
18+
19+
jobs:
20+
tests:
21+
name: "Tests"
22+
uses: "SciML/.github/.github/workflows/tests.yml@v1"
23+
with:
24+
group: "CPU"
25+
secrets: "inherit"

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using ReTestItems, Pkg, InteractiveUtils, Hwloc
22

33
@info sprint(versioninfo)
44

5-
const BACKEND_GROUP = lowercase(get(ENV, "BACKEND_GROUP", "all"))
5+
const BACKEND_GROUP = lowercase(get(ENV, "BACKEND_GROUP", get(ENV, "GROUP", "all")))
66
const EXTRA_PKGS = String[]
77

88
(BACKEND_GROUP == "all" || BACKEND_GROUP == "cuda") && push!(EXTRA_PKGS, "LuxCUDA")

test/shared_testsetup.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using MLDataDevices, GPUArraysCore
66

77
LuxTestUtils.jet_target_modules!(["DeepEquilibriumNetworks", "Lux", "LuxLib"])
88

9-
const BACKEND_GROUP = lowercase(get(ENV, "BACKEND_GROUP", "all"))
9+
const BACKEND_GROUP = lowercase(get(ENV, "BACKEND_GROUP", get(ENV, "GROUP", "all")))
1010

1111
if BACKEND_GROUP == "all" || BACKEND_GROUP == "cuda"
1212
using LuxCUDA

0 commit comments

Comments
 (0)