Skip to content

[lib] Introduce QuantumToolboxVisual library. #1511

[lib] Introduce QuantumToolboxVisual library.

[lib] Introduce QuantumToolboxVisual library. #1511

Workflow file for this run

name: Code Quality
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/Code-Quality.yml'
- 'src/**'
- 'lib/**'
- 'ext/**'
- 'test/runtests.jl'
- 'test/code-quality/**'
- 'Project.toml'
pull_request:
branches:
- 'main'
paths:
- '.github/workflows/Code-Quality.yml'
- 'src/**'
- 'lib/**'
- 'ext/**'
- 'test/runtests.jl'
- 'test/code-quality/**'
- '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.10' # oldest
- '1'
os:
- 'ubuntu-latest'
arch:
- 'x64'
steps:
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v3
- name: Dev local libs for Julia < 1.11
shell: bash
run: |
julia --project=. -e '
using Pkg
if VERSION < v"1.11"
for lib in readdir("lib"; join=true)
isdir(lib) || continue
isfile(joinpath(lib, "Project.toml")) || continue
Pkg.develop(path=lib)
end
end
Pkg.instantiate()
'
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: 'Code-Quality'