Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: read

jobs:
test:
name: julia -t${{ matrix.threads}} - ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
Expand All @@ -40,6 +43,8 @@ jobs:
arch: x86
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
Expand All @@ -59,6 +64,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: julia-actions/setup-julia@latest
with:
# version: '1.6'
Expand All @@ -70,3 +77,18 @@ jobs:
julia --project=docs --color=yes docs/make.jl pdf
env:
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

jet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: julia-actions/setup-julia@latest
with:
version: '1'
# version: 'nightly'
- uses: julia-actions/cache@v2
- run: julia --color=yes --project=ci/jet -e 'import Pkg; Pkg.instantiate()'
- name: Run the JET tests
run: julia --color=yes -t4 --project=ci/jet ci/jet/check.jl
8 changes: 8 additions & 0 deletions ci/jet/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[deps]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
Distributed = {path = "../.."}
20 changes: 20 additions & 0 deletions ci/jet/check.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using Distributed: Distributed

using JET: JET
using Serialization: Serialization
using Test: Test, @testset

# We don't want to fail PkgEval because of a JET failure
# Therefore, we don't put the JET tests in the regular Distributed test suite
# Instead, we put it in a separate CI job, which runs on the Distributed repo

@testset "JET" begin
ignored_modules = (
# We will ignore Base:
Base,

# We'll ignore the Serialization stdlib:
Serialization,
)
JET.test_package(Distributed; ignored_modules)
end