Skip to content

Commit aba5fbe

Browse files
committed
update CI
1 parent f3bc65b commit aba5fbe

File tree

4 files changed

+74
-26
lines changed

4 files changed

+74
-26
lines changed

.github/workflows/CI.yml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,44 @@ on:
77
pull_request:
88
workflow_dispatch:
99
concurrency:
10-
# Skip intermediate builds: always.
11-
# Cancel intermediate builds: only if it is a pull request build.
12-
group: ${{ github.workflow }}-${{ github.ref }}
10+
# group by workflow and ref; the last slightly strange component ensures that for pull
11+
# requests, we limit to 1 concurrent job, but for the main branch we don't
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ (github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main') || github.run_number }}
13+
# Cancel intermediate builds, but only if it is a pull request build.
1314
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
15+
16+
env:
17+
PYTHON: ~
1418
jobs:
1519
test:
16-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
20+
name: Julia ${{ matrix.version }} - t=${{ matrix.threads }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1721
runs-on: ${{ matrix.os }}
18-
timeout-minutes: 60
19-
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
20-
actions: write
21-
contents: read
2222
strategy:
2323
fail-fast: false
2424
matrix:
2525
version:
26+
- '1'
2627
- '1.10'
2728
os:
2829
- ubuntu-latest
30+
threads:
31+
- '1'
32+
- '5'
2933
arch:
3034
- x64
35+
include:
36+
- arch: aarch64
37+
os: macos-latest
38+
version: '1'
39+
threads: '1'
40+
- arch: x64
41+
os: macos-latest
42+
version: '1'
43+
threads: '1'
44+
- arch: x64
45+
os: windows-latest
46+
version: '1'
47+
threads: '1'
3148
steps:
3249
- uses: actions/checkout@v5
3350
- uses: julia-actions/setup-julia@v2
@@ -37,12 +54,13 @@ jobs:
3754
- uses: julia-actions/cache@v2
3855
- uses: julia-actions/julia-buildpkg@v1
3956
- uses: julia-actions/julia-runtest@v1
57+
env:
58+
JULIA_NUM_THREADS: ${{ matrix.threads }}
4059
- uses: julia-actions/julia-processcoverage@v1
4160
- uses: codecov/codecov-action@v5
4261
with:
4362
files: lcov.info
4463
token: ${{ secrets.CODECOV_TOKEN }}
45-
fail_ci_if_error: false
4664
docs:
4765
name: Documentation
4866
runs-on: ubuntu-latest

.github/workflows/Downgrade.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Downgrade
2+
on:
3+
pull_request:
4+
branches: [master, main]
5+
paths-ignore:
6+
- 'docs/**'
7+
push:
8+
branches: [master, main]
9+
paths-ignore:
10+
- 'docs/**'
11+
env:
12+
PYTHON: ~
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
version: ['1.10']
19+
steps:
20+
- uses: actions/checkout@v5
21+
- uses: julia-actions/setup-julia@v1
22+
with:
23+
version: ${{ matrix.version }}
24+
- uses: julia-actions/julia-downgrade-compat@v2
25+
with:
26+
skip: Pkg,TOML,InteractiveUtils,Random,LinearAlgebra
27+
- uses: julia-actions/cache@v2
28+
- run: |
29+
julia --project=@. -e 'using Pkg; Pkg.develop(path=joinpath(dirname(@__DIR__), "QuantumClifford.jl", "lib", "QECCore"))'
30+
- uses: julia-actions/julia-buildpkg@v1
31+
- uses: julia-actions/julia-runtest@v1

.github/workflows/Spelling.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Spell Check
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
typos-check:
7+
name: Spell Check with Typos
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Actions Repository
11+
uses: actions/checkout@v5
12+
- name: Check spelling
13+
uses: crate-ci/typos@master
14+
with:
15+
config: .typos.toml

.github/workflows/TagBot.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,6 @@ on:
44
types:
55
- created
66
workflow_dispatch:
7-
inputs:
8-
lookback:
9-
default: "3"
10-
permissions:
11-
actions: read
12-
checks: read
13-
contents: write
14-
deployments: read
15-
issues: read
16-
discussions: read
17-
packages: read
18-
pages: read
19-
pull-requests: read
20-
repository-projects: read
21-
security-events: read
22-
statuses: read
237
jobs:
248
TagBot:
259
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
@@ -28,4 +12,4 @@ jobs:
2812
- uses: JuliaRegistries/TagBot@v1
2913
with:
3014
token: ${{ secrets.GITHUB_TOKEN }}
31-
ssh: ${{ secrets.DOCUMENTER_KEY }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)