Skip to content

Commit b7684f7

Browse files
authored
JET CI fixes (#84)
* JET CI fixes * CI workflow improvements * switch JET CI to use not-nightly
1 parent 2506d0d commit b7684f7

File tree

8 files changed

+26
-27
lines changed

8 files changed

+26
-27
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/" # Location of package manifests
7+
schedule:
8+
interval: "weekly"

.github/workflows/CompatHelper.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
name: CompatHelper
22
on:
33
schedule:
4-
- cron: 0 0 * * *
4+
- cron: '00 00 * * *'
55
workflow_dispatch:
66
jobs:
77
CompatHelper:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: "Install CompatHelper"
11-
run: |
12-
import Pkg
13-
name = "CompatHelper"
14-
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
15-
version = "3"
16-
Pkg.add(; name, uuid, version)
17-
shell: julia --color=yes {0}
18-
- name: "Run CompatHelper"
19-
run: |
20-
import CompatHelper
21-
CompatHelper.main()
22-
shell: julia --color=yes {0}
10+
- name: Pkg.add("CompatHelper")
11+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12+
- name: CompatHelper.main()
2313
env:
2414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2515
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/breakage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
pkgversion: [latest]
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424

2525
# Install Julia
2626
- uses: julia-actions/setup-julia@v1
2727
with:
2828
version: 1
2929
arch: x64
30-
- uses: actions/cache@v1
30+
- uses: actions/cache@v3
3131
env:
3232
cache-name: cache-artifacts
3333
with:

.github/workflows/ci-jet.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
version:
14-
- nightly
14+
- '1'
1515
os:
1616
- ubuntu-latest
1717
arch:
1818
- x64
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2121
- uses: julia-actions/setup-julia@v1
2222
with:
2323
version: ${{ matrix.version }}
2424
arch: ${{ matrix.arch }}
25-
- uses: actions/cache@v1
25+
- uses: actions/cache@v3
2626
env:
2727
cache-name: cache-artifacts
2828
with:
@@ -35,8 +35,8 @@ jobs:
3535
- uses: julia-actions/julia-buildpkg@v1
3636
- uses: julia-actions/julia-runtest@v1
3737
env:
38-
QUANTUMSAVORY_JET_TEST: true
38+
QUANTUMOPTICS_JET_TEST: true
3939
- uses: julia-actions/julia-processcoverage@v1
40-
- uses: codecov/codecov-action@v1
40+
- uses: codecov/codecov-action@v3
4141
with:
4242
file: lcov.info

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
- os: macOS-latest
2424
arch: x86
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2727
- uses: julia-actions/setup-julia@v1
2828
with:
2929
version: ${{ matrix.version }}
3030
arch: ${{ matrix.arch }}
31-
- uses: actions/cache@v1
31+
- uses: actions/cache@v3
3232
env:
3333
cache-name: cache-artifacts
3434
with:
@@ -41,6 +41,6 @@ jobs:
4141
- uses: julia-actions/julia-buildpkg@v1
4242
- uses: julia-actions/julia-runtest@v1
4343
- uses: julia-actions/julia-processcoverage@v1
44-
- uses: codecov/codecov-action@v1
44+
- uses: codecov/codecov-action@v3
4545
with:
4646
file: lcov.info

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- uses: julia-actions/setup-julia@latest
1818
with:
1919
version: '1'

src/operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function embed(basis_l::CompositeBasis, basis_r::CompositeBasis,
215215
start_indices_flat = [i[1] for i in indices]
216216
complement_indices_flat = Int[i for i=1:N if i indices_flat]
217217
operators_flat = AbstractOperator[]
218-
if all([minimum(I):maximum(I);]==I for I in indices)
218+
if all(([minimum(I):maximum(I);]==I)::Bool for I in indices) # type assertion to help type inference
219219
for i in 1:N
220220
if i in complement_indices_flat
221221
push!(operators_flat, identityoperator(T, S, basis_l.bases[i], basis_r.bases[i]))

test/test_jet.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ using LinearAlgebra, LRUCache, Strided, Dates, SparseArrays
2525
if get(ENV,"QUANTUMOPTICS_JET_TEST","")=="true"
2626
rep = report_package("QuantumOpticsBase";
2727
report_pass=MayThrowIsOk(), # TODO have something more fine grained than a generic "do not care about thrown errors"
28-
ignored_modules=( # TODO fix issues with these modules or report them upstrem
28+
ignored_modules=( # TODO fix issues with these modules or report them upstream
2929
AnyFrameModule(LinearAlgebra),
3030
AnyFrameModule(LRUCache),
3131
AnyFrameModule(Strided),

0 commit comments

Comments
 (0)