Skip to content

Commit 87048fe

Browse files
fix windows failure (#197)
* fix windows failure fixes a windows failure due to asserting Int64 when the architecture may be Int32 ``` ERROR: LoadError: TaskFailedException nested task error: LoadError: MethodError: Cannot `convert` an object of type Base.RefValue{Int32} to an object of type Base.RefValue{Int64} Closest candidates are: convert(::Type{T}, ::T) where T @ Base Base.jl:84 Base.RefValue{T}(::Any) where T @ Base refvalue.jl:8 Stacktrace: [1] TestItem(number::Base.RefValue{Int32}, name::String, id::String, tags::Vector{Symbol}, default_imports::Bool, setups::Vector{Any}, retries::Int32, timeout::Nothing, skip::Bool, failfast::Nothing, file::String, line::Int32, project_root::String, code::Expr, testsetups::Vector{TestSetup}, workerid::Base.RefValue{Int32}, testsets::Vector{Test.DefaultTestSet}, eval_number::Base.RefValue{Int32}, stats::Vector{ReTestItems.PerfStats}, scheduled_for_evaluation::ReTestItems.ScheduledForEvaluation) ``` * Update CI.yml * Update CI.yml --------- Co-authored-by: Nick Robinson <[email protected]>
1 parent 188f01c commit 87048fe

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/CI.yml

+13
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,21 @@ jobs:
2323
os:
2424
- ubuntu-latest
2525
- macOS-latest
26+
- windows-latest
2627
arch:
2728
- x64
29+
- x86
30+
exclude:
31+
- os: macOS-latest
32+
arch: x86
33+
- os: ubuntu-latest
34+
arch: x86
35+
- os: windows-latest
36+
arch: x64
37+
- os: windows-latest
38+
version: 1.8
39+
- os: windows-latest
40+
version: 1.11
2841
steps:
2942
- uses: actions/[email protected]
3043
- uses: julia-actions/setup-julia@v1

src/macros.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ those test in their own module.
112112
Should only be created via the `@testitem` macro.
113113
"""
114114
struct TestItem
115-
number::Base.RefValue{Int64} # populated by runtests coordinator once all test items are known
115+
number::Base.RefValue{Int} # populated by runtests coordinator once all test items are known
116116
name::String
117117
id::String # in case file/name isn't a sufficiently stable identifier for reporting purposes
118118
tags::Vector{Symbol}

0 commit comments

Comments
 (0)