Browse Source

update catlab v0.12 and add julia 1.6 support (#43)

Signed-off-by: Micah Halter <micah@balena.io>
master v1.2.6
Micah Halter 2 months ago
committed by GitHub
parent
commit
772129c021
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/codecov.yml
  2. 2
      .github/workflows/docs.yml
  3. 2
      .github/workflows/test.yml
  4. 4
      Project.toml
  5. 6
      test/solvers.jl

2
.github/workflows/codecov.yml

@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.5'
version: '1.6'
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1

2
.github/workflows/docs.yml

@ -10,7 +10,7 @@ jobs:
- name: "Set up Julia"
uses: julia-actions/setup-julia@latest
with:
version: '1.5'
version: '1.6'
- name: "Install system dependencies"
run: |
sudo apt-get update

2
.github/workflows/test.yml

@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
julia-version: ['1.0', '1.5']
julia-version: ['1.0', '1.6']
os: [ubuntu-latest]
steps:

4
Project.toml

@ -1,7 +1,7 @@
name = "Petri"
uuid = "4259d249-1051-49fa-8328-3f8ab9391c33"
authors = ["Micah Halter <micah.halter@gtri.gatech.edu>", "James Fairbanks <james.fairbanks@gtri.gatech.edu>"]
version = "1.2.5"
version = "1.2.6"
[deps]
AutoHashEquals = "15f4f7f2-30c1-5605-9d31-71845cf9641f"
@ -15,7 +15,7 @@ StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
[compat]
AutoHashEquals = "^0.2.0"
Catlab = "0.7.4,0.8,0.9,0.10,0.11"
Catlab = "0.7.4,0.8,0.9,0.10,0.11,0.12"
DiffEqBase = "^6"
DiffEqJump = "^6"
OrdinaryDiffEq = "^5"

6
test/solvers.jl

@ -59,9 +59,9 @@ end
prob = JumpProblem(sir,u0,(0.0,40.0),p)
sol = DiffEqJump.solve(prob,SSAStepper())
@test sum(sol[end]) == 1000
@test sol[end].S == 263
@test sol[end].I == 10
@test sol[end].R == 727
@test sol[end].S == 236
@test sol[end].I == 45
@test sol[end].R == 719
end
end

Loading…
Cancel
Save