Skip to content

Commit 8b5f214

Browse files
authored
Add stdlib compats (#214)
* Add stdlib compats * Add workaround for julia 1.3 and earlier
1 parent a9fedbe commit 8b5f214

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ jobs:
4949
uses: julia-actions/setup-julia@v1
5050
with:
5151
version: ${{ matrix.julia-version }}
52+
- name: Remove compat entry for old julia versions
53+
# This is needed for julia 1.0-1.3, see https://julialang.slack.com/archives/C67910KEH/p1697548190422019?thread_ts=1697546952.011759&cid=C67910KEH
54+
if: matrix.julia-version == '1.0' || matrix.julia-version == '1.1' || matrix.julia-version == '1.2' || matrix.julia-version == '1.3'
55+
shell: julia --project=. --color=yes {0}
56+
run: |
57+
using Pkg.TOML
58+
prj = TOML.parsefile("Project.toml")
59+
delete!(prj["compat"], "Test")
60+
open(io -> TOML.print(io, prj), "Project.toml", "w")
5261
- uses: julia-actions/julia-runtest@v1
5362
- uses: julia-actions/julia-processcoverage@v1
5463
- uses: codecov/codecov-action@v3

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1010

1111
[compat]
1212
Compat = "3.12, 4"
13+
Pkg = "1.0"
14+
Test = "1.0"
1315
julia = "1.0"
1416

1517
[extras]

0 commit comments

Comments
 (0)