Skip to content

Commit 01273d4

Browse files
authored
Merge pull request #19 from SciML/at/use-reusable-workflows
ci: standardise workflows using SciML's reusable workflows
2 parents 67b521d + 12f7a01 commit 01273d4

File tree

3 files changed

+45
-69
lines changed

3 files changed

+45
-69
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Documentation
1+
name: "Documentation"
2+
23
on:
34
push:
45
branches:
@@ -7,26 +8,13 @@ on:
78
pull_request:
89
schedule:
910
- cron: '36 13 * * 5'
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
15+
1016
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@b32f140b0c872d58512e0a66172253c302617b90
15-
- uses: julia-actions/setup-julia@latest
16-
with:
17-
version: '1'
18-
- name: Install dependencies
19-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20-
- name: Build and deploy
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
23-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
24-
run: julia --project=docs/ docs/make.jl
25-
- uses: julia-actions/julia-processcoverage@v1
26-
with:
27-
directories: src
28-
- uses: codecov/codecov-action@v4
29-
with:
30-
files: lcov.info
31-
token: ${{ secrets.CODECOV_TOKEN }}
32-
fail_ci_if_error: true
17+
build-and-deploy-docs:
18+
name: "Documentation"
19+
uses: "SciML/.github/.github/workflows/documentation.yml@v1"
20+
secrets: "inherit"

.github/workflows/Tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
schedule:
15+
- cron: '36 13 * * 5'
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
20+
21+
jobs:
22+
tests:
23+
name: "Tests"
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
os:
28+
- "ubuntu-latest"
29+
- "macos-latest"
30+
- "windows-latest"
31+
uses: "SciML/.github/.github/workflows/tests.yml@v1"
32+
with:
33+
os: "${{ matrix.os }}"
34+
secrets: "inherit"

0 commit comments

Comments
 (0)