Skip to content

Commit 7aacf19

Browse files
committed
add downstream test for OpPoDyn
1 parent 41c0673 commit 7aacf19

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ jobs:
109109
# token: ${{ secrets.CODECOV_TOKEN }}
110110
# fail_ci_if_error: false
111111

112-
pd-test:
113-
name: PowerDynamics.jl test - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
112+
OpPoDyn-test:
113+
name: OpPoDyn.jl test - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
114114
runs-on: ${{ matrix.os }}
115115
permissions:
116116
actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created
@@ -131,19 +131,20 @@ jobs:
131131
version: ${{ matrix.version }}
132132
arch: ${{ matrix.arch }}
133133
- uses: julia-actions/julia-buildpkg@v1
134+
- uses: julia-actions/cache@v2
134135
- uses: actions/checkout@v4
135136
with:
136-
repository: JuliaEnergy/PowerDynamics.jl
137-
path: PowerDynamics.jl
138-
- name: Run PD tests
139-
shell: julia --project=PowerDynamics.jl {0}
137+
repository: JuliaEnergy/OpPoDyn.jl
138+
path: OpPoDyn
139+
- name: Run OpPoDyn tests
140+
shell: julia --project=testenv --color=yes {0}
140141
run: |
141-
import Pkg
142+
using Pkg
142143
try
143-
Pkg.develop(path=".")
144-
Pkg.update()
145-
Pkg.precompile()
146-
Pkg.test()
144+
pkg"dev ."
145+
pkg"dev ./OpPoDyn"
146+
pkg"dev ./OpPoDyn/OpPoDynTesting"
147+
Pkg.test("OpPoDyn"; coverage=false)
147148
catch e
148149
if e isa Pkg.Resolve.ResolverError
149150
@info "Resolve error! No need to test a breaking release..." e

0 commit comments

Comments
 (0)