Skip to content

Commit 8f64619

Browse files
authored
Add Julia v1.11 to CI and buildkite config (#262)
* add Julia v1.11 to CI and buildkite config * separate code quality ci pipeline from runtests
1 parent bdedbda commit 8f64619

File tree

4 files changed

+68
-11
lines changed

4 files changed

+68
-11
lines changed

.buildkite/CUDA_Ext.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ steps:
44
setup:
55
version:
66
- "1.10" # oldest
7-
#- "1" # latest
7+
- "1" # latest
88
plugins:
99
- JuliaCI/julia#v1:
1010
version: "{{matrix.version}}"

.github/workflows/CI.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
# for core tests (latest and oldest supported versions)
4242
version:
4343
- '1.10' # oldest
44-
# - '1' # latest
44+
- '1' # latest
4545
node:
4646
- os: 'ubuntu-latest'
4747
arch: 'x64'
@@ -52,14 +52,7 @@ jobs:
5252
group:
5353
- 'Core'
5454

55-
include:
56-
# for code quality tests
57-
- version: '1'
58-
node:
59-
os: 'ubuntu-latest'
60-
arch: 'x64'
61-
group: 'Code-Quality'
62-
55+
# include:
6356
# for core tests (intermediate versions)
6457
# - version: '1.x'
6558
# node:

.github/workflows/Code-Quality.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Code Quality
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
paths:
8+
- '.github/workflows/Code-Quality.yml'
9+
- 'src/**'
10+
- 'ext/**'
11+
- 'test/runtests.jl'
12+
- 'test/core-test/**'
13+
- 'Project.toml'
14+
pull_request:
15+
branches:
16+
- 'main'
17+
paths:
18+
- '.github/workflows/Code-Quality.yml'
19+
- 'src/**'
20+
- 'ext/**'
21+
- 'test/runtests.jl'
22+
- 'test/core-test/**'
23+
- 'Project.toml'
24+
types:
25+
- opened
26+
- reopened
27+
- synchronize
28+
- ready_for_review
29+
30+
jobs:
31+
test:
32+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
33+
runs-on: ${{ matrix.os }}
34+
permissions: # needed to allow julia-actions/cache to delete old caches that it has created
35+
actions: write
36+
contents: read
37+
if: ${{ !github.event.pull_request.draft }}
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
version:
42+
- '1'
43+
os:
44+
- 'ubuntu-latest'
45+
arch:
46+
- 'x64'
47+
group:
48+
- 'Code-Quality'
49+
50+
steps:
51+
- uses: actions/checkout@v4
52+
- uses: julia-actions/setup-julia@v2
53+
with:
54+
version: ${{ matrix.version }}
55+
arch: ${{ matrix.arch }}
56+
- uses: julia-actions/cache@v2
57+
- uses: julia-actions/julia-buildpkg@v1
58+
- uses: julia-actions/julia-runtest@v1
59+
env:
60+
GROUP: ${{ matrix.group }}

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ and [Y.-T. Huang](https://github.com/ytdHuang).
1212
<!-- Table of Badges -->
1313
| **Release** | [![Release][release-img]][release-url] [![License][license-img]][license-url] [![DOI][doi-img]][doi-url] [![Downloads][download-img]][download-url] |
1414
|:-----------------:|:-------------|
15-
| **Runtests** | [![Runtests][runtests-img]][runtests-url] [![Coverage][codecov-img]][codecov-url] [![Aqua QA][aqua-img]][aqua-url] [![JET][jet-img]][jet-url] |
15+
| **Runtests** | [![Runtests][runtests-img]][runtests-url] [![Coverage][codecov-img]][codecov-url] |
16+
| **Code Quality** | [![Code Quality][code-quality-img]][code-quality-url] [![Aqua QA][aqua-img]][aqua-url] [![JET][jet-img]][jet-url] |
1617
| **Documentation** | [![Doc-Stable][docs-stable-img]][docs-stable-url] [![Doc-Dev][docs-develop-img]][docs-develop-url] |
1718
| **Benchmark** | [![Benchmarks][benchmark-img]][benchmark-url] |
1819
| **Support** | [![Unitary Fund](https://img.shields.io/badge/Supported%20By-UNITARY%20FUND-brightgreen.svg?style=for-the-badge)](https://unitary.fund) |
@@ -35,6 +36,9 @@ and [Y.-T. Huang](https://github.com/ytdHuang).
3536
[codecov-img]: https://codecov.io/gh/qutip/QuantumToolbox.jl/branch/main/graph/badge.svg
3637
[codecov-url]: https://codecov.io/gh/qutip/QuantumToolbox.jl
3738

39+
[code-quality-img]: https://github.com/qutip/QuantumToolbox.jl/actions/workflows/Code-Quality.yml/badge.svg
40+
[code-quality-url]: https://github.com/qutip/QuantumToolbox.jl/actions/workflows/Code-Quality.yml
41+
3842
[aqua-img]: https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg
3943
[aqua-url]: https://github.com/JuliaTesting/Aqua.jl
4044

0 commit comments

Comments
 (0)