Browse Source

Removed tests for Julia v1.0

pull/64/head
bosonbaas 3 months ago
committed by Andrew Baas (Rebase PR Action)
parent
commit
9e44d7bd1d
  1. 9
      .github/workflows/test.yml
  2. 2
      Project.toml
  3. 5
      test/petri.jl
  4. 6
      test/runtests.jl
  5. 6
      test/v1.0/Project.toml

9
.github/workflows/test.yml

@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
julia_version: ['1.0', '1.6']
julia_version: ['1.6']
os: [ubuntu-latest]
steps:
@ -19,10 +19,3 @@ jobs:
version: ${{ matrix.julia_version }}
- name: "Run tests"
uses: julia-actions/julia-runtest@master
if: matrix.julia_version != '1.0'
- name: "Run tests (Julia v1.0)"
run: |
julia -e 'using Pkg; Pkg.activate("test/v1.0"); Pkg.develop(PackageSpec(path="."))'
julia --color=yes --check-bounds=yes --project=test/v1.0 test/runtests.jl
# XXX: Julia 1.0 does not use the Project.toml in `tests` directory.
if: matrix.julia_version == '1.0'

2
Project.toml

@ -18,7 +18,7 @@ Catlab = "0.12.7"
LabelledArrays = "^1"
Requires = "^1"
StatsBase = "^0.33"
julia = "1.0"
julia = "1.6"
[extras]
Petri = "4259d249-1051-49fa-8328-3f8ab9391c33"

5
test/petri.jl

@ -34,4 +34,7 @@ rn′ = Open([1], ReactionNet{Number,Int}([10, 0], (.25, 1=>2)), [2])
lrn = Open(LabelledReactionNet{Number,Int}([:I=>10, :R=>0], ((:rec=>.25), :I=>:R)))
lrn′ = Open([:I], LabelledReactionNet{Number,Int}([:I=>10, :R=>0], ((:rec=>.25), :I=>:R)), [:R])
@test lrn == lrn′
@test lrn == lrn′
death_petri = Open(PetriNet(1, 1=>()));
@test Graph(death_petri) isa Graph

6
test/runtests.jl

@ -34,8 +34,6 @@ end
include("modelcomparison.jl")
end
if VERSION >= v"1.3.0"
@testset "Catalyst Tooling" begin
include("CatalystInterop.jl")
end
@testset "Catalyst Tooling" begin
include("CatalystInterop.jl")
end

6
test/v1.0/Project.toml

@ -1,6 +0,0 @@
[deps]
AlgebraicPetri = "4f99eebe-17bf-4e98-b6a1-2c4f205a959b"
Catlab = "134e5e36-593f-5add-ad60-77f754baafbe"
LabelledArrays = "2ee39098-c373-598a-b85f-a56591580800"
Petri = "4259d249-1051-49fa-8328-3f8ab9391c33"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Loading…
Cancel
Save