Skip to content

Commit 81a45cd

Browse files
committed
Run Krotov and GRAPE test suite in CI
1 parent 3d6fca1 commit 81a45cd

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.github/workflows/CI.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,36 @@ jobs:
2424
with:
2525
version: ${{ matrix.version }}
2626
arch: ${{ matrix.arch }}
27-
- uses: actions/cache@v1
28-
env:
29-
cache-name: cache-artifacts
30-
with:
31-
path: ~/.julia/artifacts
32-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
33-
restore-keys: |
34-
${{ runner.os }}-test-${{ env.cache-name }}-
35-
${{ runner.os }}-test-
36-
${{ runner.os }}-
27+
- uses: julia-actions/cache@v1
3728
- run: |
3829
# Instantiate Pkg
3930
wget https://raw.githubusercontent.com/JuliaQuantumControl/JuliaQuantumControl/master/scripts/installorg.jl
4031
julia --project=test installorg.jl
4132
- run: |
4233
# Run tests
4334
julia --project=test --color=auto --startup-file=yes --code-coverage="user" --depwarn="yes" --check-bounds="yes" -e 'include("test/runtests.jl")'
35+
- run: |
36+
# Run downstream "Krotov" tests
37+
julia --project=test -e '
38+
using Pkg
39+
Pkg.test("Krotov", coverage=true)'
40+
- run: |
41+
# Run downstream "GRAPE" tests
42+
julia --project=test -e '
43+
using Pkg
44+
Pkg.test("GRAPE", coverage=true)'
4445
- uses: julia-actions/julia-processcoverage@v1
4546
- run: |
4647
# Summarize coverage
4748
julia --project=test -e 'using QuantumControlTestUtils; show_coverage();'
48-
- uses: codecov/codecov-action@v1
49+
- uses: codecov/codecov-action@v2
4950
with:
50-
file: lcov.info
51+
files: lcov.info
5152
docs:
5253
name: Documentation
5354
runs-on: ubuntu-latest
55+
permissions:
56+
contents: write
5457
steps:
5558
- uses: actions/checkout@v2
5659
- uses: julia-actions/setup-julia@v1
@@ -67,7 +70,7 @@ jobs:
6770
- run: cp test/*.toml docs/ # Prepare DrWatson
6871
- run: |
6972
# Run doctests
70-
julia --project=docs -e '
73+
julia --project=test -e '
7174
using Documenter: DocMeta, doctest
7275
using QuantumControl
7376
DocMeta.setdocmeta!(QuantumControl, :DocTestSetup, :(using QuantumControl); recursive=true)

0 commit comments

Comments
 (0)