Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Commit bb4ecb6

Browse files
Merge pull request #154 from SciML/at/use-reusable-workflows
ci: standardize workflows using SciML's reusable workflows
2 parents bdfe12f + 0dbf634 commit bb4ecb6

File tree

4 files changed

+56
-90
lines changed

4 files changed

+56
-90
lines changed

.github/workflows/CI.yml

-55
This file was deleted.

.github/workflows/FormatCheck.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
name: Format suggestions
1+
name: "Format Check"
22

3-
on: [pull_request]
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
tags: '*'
8+
pull_request:
49

510
jobs:
6-
code-style:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: julia-actions/julia-format@v3
11+
format-check:
12+
name: "Format Check"
13+
uses: "SciML/.github/.github/workflows/format-suggestions-on-pr.yml@v1"

.github/workflows/Invalidations.yml

+4-29
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Invalidations
1+
name: "Invalidations"
22

33
on:
44
pull_request:
@@ -10,31 +10,6 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
jobs:
13-
evaluate:
14-
# Only run on PRs to the default branch.
15-
# In the PR trigger above branches can be specified only explicitly whereas this check should work for master, main, or any other default branch
16-
if: github.base_ref == github.event.repository.default_branch
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: julia-actions/setup-julia@v2
20-
with:
21-
version: '1'
22-
- uses: actions/checkout@v4
23-
- uses: julia-actions/julia-buildpkg@v1
24-
- uses: julia-actions/julia-invalidations@v1
25-
id: invs_pr
26-
27-
- uses: actions/checkout@v4
28-
with:
29-
ref: ${{ github.event.repository.default_branch }}
30-
- uses: julia-actions/julia-buildpkg@v1
31-
- uses: julia-actions/julia-invalidations@v1
32-
id: invs_default
33-
34-
- name: Report invalidation counts
35-
run: |
36-
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
37-
echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
38-
- name: Check if the PR does increase number of invalidations
39-
if: steps.invs_pr.outputs.total > steps.invs_default.outputs.total
40-
run: exit 1
13+
evaluate-invalidations:
14+
name: "Evaluate Invalidations"
15+
uses: "SciML/.github/.github/workflows/invalidations.yml@v1"

.github/workflows/Tests.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "Tests"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- 'release-'
8+
paths-ignore:
9+
- 'docs/**'
10+
push:
11+
branches:
12+
- main
13+
paths-ignore:
14+
- 'docs/**'
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
19+
20+
env:
21+
JULIA_NUM_THREADS: 11
22+
RETESTITEMS_NWORKERS: 4
23+
RETESTITEMS_NWORKER_THREADS: 2
24+
25+
jobs:
26+
tests:
27+
name: "Tests"
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
group:
32+
- "Core"
33+
os:
34+
- "ubuntu-latest"
35+
- "macos-latest"
36+
- "windows-latest"
37+
38+
uses: "SciML/.github/.github/workflows/tests.yml@v1"
39+
with:
40+
group: "${{ matrix.group }}"
41+
os: "${{ matrix.os }}"
42+
secrets: "inherit"

0 commit comments

Comments
 (0)