Skip to content

Commit b987640

Browse files
authored
update CI jobs (#101)
* update CI jobs * run only on master push * fix job name * fix Julia version
1 parent 72bb19d commit b987640

File tree

3 files changed

+33
-30
lines changed

3 files changed

+33
-30
lines changed

.github/workflows/CI.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: CI
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches:
5+
- master
6+
pull_request:
57
defaults:
68
run:
79
shell: bash
@@ -10,27 +12,27 @@ jobs:
1012
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
1113
runs-on: ${{ matrix.os }}
1214
strategy:
13-
fail-fast: true
1415
matrix:
1516
version:
1617
- '1.0'
17-
- '1.3'
18-
- '1.5'
1918
- '1.6'
20-
- '1.7'
19+
- '1.10'
2120
- '1'
22-
- 'nightly'
2321
os:
2422
- ubuntu-latest
2523
- macOS-latest
2624
- windows-latest
27-
arch:
28-
- x64
25+
exclude:
26+
- os: macOS-latest # Apple Silicon
27+
version: '1.0'
28+
- os: macOS-latest # Apple Silicon
29+
version: '1.6'
2930
steps:
30-
- uses: actions/checkout@v2
31-
- uses: julia-actions/setup-julia@v1
31+
- uses: actions/checkout@v4
32+
- uses: julia-actions/setup-julia@v2
3233
with:
3334
version: ${{ matrix.version }}
34-
arch: ${{ matrix.arch }}
35-
- uses: julia-actions/julia-buildpkg@latest
36-
- uses: julia-actions/julia-runtest@latest
35+
arch: 'default'
36+
- uses: julia-actions/cache@v2
37+
- uses: julia-actions/julia-buildpkg@v1
38+
- uses: julia-actions/julia-runtest@v1

.github/workflows/Downstream.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,42 @@
11
name: IntegrationTest
22
on:
33
push:
4+
branches:
5+
- master
46
pull_request:
57

68
jobs:
79
test:
8-
name: ${{ matrix.package.repo }}/${{ matrix.julia-version }}
10+
name: ${{ matrix.package }}/${{ matrix.julia-version }}
911
runs-on: ${{ matrix.os }}
1012
strategy:
1113
fail-fast: false
1214
matrix:
13-
julia-version: [1.6, 1, nightly]
15+
julia-version: ['1.6', '1.10', '1']
1416
os: [ubuntu-latest]
1517
package:
16-
- {repo: JuliaObjects/Accessors.jl}
17-
- {repo: JuliaFolds/BangBang.jl}
18-
- {repo: jw3126/Setfield.jl}
19-
- {repo: rafaqz/Flatten.jl}
18+
- Accessors
19+
- BangBang
20+
- Setfield
21+
- Flatten
2022
steps:
2123
- uses: actions/checkout@v2
2224
- uses: julia-actions/setup-julia@v1
2325
with:
2426
version: ${{ matrix.julia-version }}
2527
arch: x64
2628
- uses: julia-actions/julia-buildpkg@latest
27-
- name: Clone Downstream
28-
uses: actions/checkout@v2
29-
with:
30-
repository: ${{ matrix.package.repo }}
31-
path: downstream
32-
- name: Load this and run the downstream tests
33-
shell: julia --color=yes --project=downstream {0}
29+
- name: Install downstream and run its tests
30+
shell: julia --color=yes {0}
3431
run: |
3532
using Pkg
3633
try
34+
Pkg.activate("downstream")
3735
# force it to use this PR's version of the package
3836
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
37+
Pkg.add("${{ matrix.package }}")
3938
Pkg.update()
40-
Pkg.test(coverage=true) # resolver may fail with test time deps
39+
Pkg.test("${{ matrix.package }}", coverage=true) # resolver may fail with test time deps
4140
catch err
4241
err isa Pkg.Resolve.ResolverError || rethrow()
4342
# If we can't resolve that means this is incompatible by SemVer and this is fine

.github/workflows/RunTestsNoIncrementalPrecompile.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
name: CI
1+
name: NoCompModules
22
on:
3-
- push
3+
push:
4+
branches:
5+
- master
46
- pull_request
57
defaults:
68
run:

0 commit comments

Comments
 (0)