diff --git a/.buildkite/CUDA_Ext.yml b/.buildkite/CUDA_Ext.yml index b5035f9f..589a310d 100644 --- a/.buildkite/CUDA_Ext.yml +++ b/.buildkite/CUDA_Ext.yml @@ -4,7 +4,7 @@ steps: setup: version: - "1.10" # oldest - #- "1" # latest + - "1" # latest plugins: - JuliaCI/julia#v1: version: "{{matrix.version}}" diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f1ebe096..e45dcbbf 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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' @@ -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: diff --git a/.github/workflows/Code-Quality.yml b/.github/workflows/Code-Quality.yml new file mode 100644 index 00000000..29d56c44 --- /dev/null +++ b/.github/workflows/Code-Quality.yml @@ -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 }} diff --git a/README.md b/README.md index 9601e3b8..f3bfceee 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ and [Y.-T. Huang](https://github.com/ytdHuang). | **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) | @@ -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