Skip to content

Commit 625eb18

Browse files
committed
Use VERSION.prerelease
1 parent d6e9c83 commit 625eb18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/JuliaPre.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ jobs:
3232
- uses: julia-actions/julia-runtest@v1
3333
env:
3434
GROUP: ${{ matrix.test_group }}
35-
IS_PRERELEASE: "true"

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ using DynamicPPL: getargs_dottilde, getargs_tilde
3636
# These flags are set in CI
3737
const GROUP = get(ENV, "GROUP", "All")
3838
const AQUA = get(ENV, "AQUA", "true") == "true"
39-
const IS_PRERELEASE = get(ENV, "IS_PRERELEASE", "false") == "true"
4039

40+
# Detect if prerelease version, if so, we skip some tests
41+
const IS_PRERELEASE = !isempty(VERSION.prerelease)
4142
if !IS_PRERELEASE
4243
Pkg.add("Mooncake")
4344
using Mooncake: Mooncake

0 commit comments

Comments
 (0)