Skip to content

Commit

Permalink
Add Julia v1.11 to CI and buildkite config (#262)
Browse files Browse the repository at this point in the history
* add Julia v1.11 to CI and buildkite config

* separate code quality ci pipeline from runtests
  • Loading branch information
ytdHuang authored Oct 9, 2024
1 parent bdedbda commit 8f64619
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .buildkite/CUDA_Ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ steps:
setup:
version:
- "1.10" # oldest
#- "1" # latest
- "1" # latest
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
# for core tests (latest and oldest supported versions)
version:
- '1.10' # oldest
# - '1' # latest
- '1' # latest
node:
- os: 'ubuntu-latest'
arch: 'x64'
Expand All @@ -52,14 +52,7 @@ jobs:
group:
- 'Core'

include:
# for code quality tests
- version: '1'
node:
os: 'ubuntu-latest'
arch: 'x64'
group: 'Code-Quality'

# include:
# for core tests (intermediate versions)
# - version: '1.x'
# node:
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/Code-Quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Code Quality

on:
push:
branches:
- 'main'
paths:
- '.github/workflows/Code-Quality.yml'
- 'src/**'
- 'ext/**'
- 'test/runtests.jl'
- 'test/core-test/**'
- 'Project.toml'
pull_request:
branches:
- 'main'
paths:
- '.github/workflows/Code-Quality.yml'
- 'src/**'
- 'ext/**'
- 'test/runtests.jl'
- 'test/core-test/**'
- 'Project.toml'
types:
- opened
- reopened
- synchronize
- ready_for_review

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
permissions: # needed to allow julia-actions/cache to delete old caches that it has created
actions: write
contents: read
if: ${{ !github.event.pull_request.draft }}
strategy:
fail-fast: false
matrix:
version:
- '1'
os:
- 'ubuntu-latest'
arch:
- 'x64'
group:
- 'Code-Quality'

steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: ${{ matrix.group }}
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ and [Y.-T. Huang](https://github.com/ytdHuang).
<!-- Table of Badges -->
| **Release** | [![Release][release-img]][release-url] [![License][license-img]][license-url] [![DOI][doi-img]][doi-url] [![Downloads][download-img]][download-url] |
|:-----------------:|:-------------|
| **Runtests** | [![Runtests][runtests-img]][runtests-url] [![Coverage][codecov-img]][codecov-url] [![Aqua QA][aqua-img]][aqua-url] [![JET][jet-img]][jet-url] |
| **Runtests** | [![Runtests][runtests-img]][runtests-url] [![Coverage][codecov-img]][codecov-url] |
| **Code Quality** | [![Code Quality][code-quality-img]][code-quality-url] [![Aqua QA][aqua-img]][aqua-url] [![JET][jet-img]][jet-url] |
| **Documentation** | [![Doc-Stable][docs-stable-img]][docs-stable-url] [![Doc-Dev][docs-develop-img]][docs-develop-url] |
| **Benchmark** | [![Benchmarks][benchmark-img]][benchmark-url] |
| **Support** | [![Unitary Fund](https://img.shields.io/badge/Supported%20By-UNITARY%20FUND-brightgreen.svg?style=for-the-badge)](https://unitary.fund) |
Expand All @@ -35,6 +36,9 @@ and [Y.-T. Huang](https://github.com/ytdHuang).
[codecov-img]: https://codecov.io/gh/qutip/QuantumToolbox.jl/branch/main/graph/badge.svg
[codecov-url]: https://codecov.io/gh/qutip/QuantumToolbox.jl

[code-quality-img]: https://github.com/qutip/QuantumToolbox.jl/actions/workflows/Code-Quality.yml/badge.svg
[code-quality-url]: https://github.com/qutip/QuantumToolbox.jl/actions/workflows/Code-Quality.yml

[aqua-img]: https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg
[aqua-url]: https://github.com/JuliaTesting/Aqua.jl

Expand Down

0 comments on commit 8f64619

Please sign in to comment.