Skip to content

Commit 8609179

Browse files
committed
Separate out downstream testing
1 parent 908e10d commit 8609179

3 files changed

Lines changed: 86 additions & 10 deletions

File tree

.github/workflows/CI.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,6 @@ jobs:
3838
shell: julia --color=yes --project=test --code-coverage="@" --depwarn="yes" --check-bounds="yes" {0}
3939
run: |
4040
include(joinpath(pwd(), "test", "runtests.jl"))
41-
- name: "Run upstream Krotov tests"
42-
shell: julia --color=yes --project=test --code-coverage="@" --depwarn="yes" --check-bounds="yes" {0}
43-
run: |
44-
using Pkg
45-
Pkg.test("Krotov", coverage=true)
46-
- name: "Run upstream GRAPE tests"
47-
shell: julia --color=yes --project=test --code-coverage="@" --depwarn="yes" --check-bounds="yes" {0}
48-
run: |
49-
using Pkg
50-
Pkg.test("GRAPE", coverage=true)
5141
- uses: julia-actions/julia-processcoverage@v1
5242
- name: "Summarize coverage"
5343
run: julia --project=test -e 'using QuantumControlTestUtils; show_coverage();'

.github/workflows/GRAPE.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test downstream GRAPE
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- dev
7+
- 'release-*'
8+
tags:
9+
- '*'
10+
pull_request:
11+
branches:
12+
- master
13+
env:
14+
GKSwstype: 100
15+
JULIA_PKG_PRECOMPILE_AUTO: false
16+
jobs:
17+
test-grape:
18+
name: Test GRAPE
19+
runs-on: ubuntu-latest
20+
continue-on-error: true
21+
steps:
22+
- uses: actions/checkout@v6
23+
- uses: julia-actions/setup-julia@v2
24+
with:
25+
version: '1'
26+
- uses: julia-actions/cache@v2
27+
- name: "Instantiate test environment"
28+
run: |
29+
wget https://raw.githubusercontent.com/JuliaQuantumControl/JuliaQuantumControl/master/scripts/installorg.jl
30+
julia --project=test installorg.jl
31+
- name: "Run GRAPE tests"
32+
shell: julia --color=yes --project=test --code-coverage="@" --depwarn="yes" --check-bounds="yes" {0}
33+
run: |
34+
using Pkg
35+
Pkg.test("GRAPE", coverage=true)
36+
- name: Save Julia depot cache on cancel or failure
37+
id: julia-cache-save
38+
if: cancelled() || failure()
39+
uses: actions/cache/save@v5
40+
with:
41+
path: |
42+
${{ steps.julia-cache.outputs.cache-paths }}
43+
key: ${{ steps.julia-cache.outputs.cache-key }}

.github/workflows/Krotov.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test downstream Krotov
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- dev
7+
- 'release-*'
8+
tags:
9+
- '*'
10+
pull_request:
11+
branches:
12+
- master
13+
env:
14+
GKSwstype: 100
15+
JULIA_PKG_PRECOMPILE_AUTO: false
16+
jobs:
17+
test-krotov:
18+
name: Test Krotov
19+
runs-on: ubuntu-latest
20+
continue-on-error: true
21+
steps:
22+
- uses: actions/checkout@v6
23+
- uses: julia-actions/setup-julia@v2
24+
with:
25+
version: '1'
26+
- uses: julia-actions/cache@v2
27+
- name: "Instantiate test environment"
28+
run: |
29+
wget https://raw.githubusercontent.com/JuliaQuantumControl/JuliaQuantumControl/master/scripts/installorg.jl
30+
julia --project=test installorg.jl
31+
- name: "Run Krotov tests"
32+
shell: julia --color=yes --project=test --code-coverage="@" --depwarn="yes" --check-bounds="yes" {0}
33+
run: |
34+
using Pkg
35+
Pkg.test("Krotov", coverage=true)
36+
- name: Save Julia depot cache on cancel or failure
37+
id: julia-cache-save
38+
if: cancelled() || failure()
39+
uses: actions/cache/save@v5
40+
with:
41+
path: |
42+
${{ steps.julia-cache.outputs.cache-paths }}
43+
key: ${{ steps.julia-cache.outputs.cache-key }}

0 commit comments

Comments
 (0)