|
47 | 47 | # runs-on: macos-latest # fails b/c cbc can't compile on M1 (the GHA runners) |
48 | 48 | shell: 'bash -e {0}' |
49 | 49 |
|
| 50 | + # runs the script installing *released* software and a little testing |
50 | 51 | - conda-env: null |
51 | 52 | python-version: "3.12" |
52 | 53 | julia-version: "1.10" |
|
67 | 68 | with: |
68 | 69 | sparse-checkout: | |
69 | 70 | devtools/linux_conda_install.sh |
70 | | - devtools/conda-envs/unix.yaml |
71 | | - # last can be removed |
| 71 | + # devtools/conda-envs/unix.yaml # if need local for changes |
72 | 72 | sparse-checkout-cone-mode: false |
73 | 73 |
|
74 | 74 | - uses: actions/checkout@v4 |
|
95 | 95 | echo "::group::View Env Spec File for Conda (Edited)" |
96 | 96 | cat unix.yaml |
97 | 97 | echo "::endgroup::" |
98 | | - pwd |
99 | | - ls -l |
100 | 98 |
|
101 | 99 | - name: Install Conda Python ${{ matrix.cfg.python-version }} |
102 | 100 | if: matrix.cfg.label == 'script' |
@@ -130,32 +128,28 @@ jobs: |
130 | 128 | uname -p |
131 | 129 | which python pip |
132 | 130 | python --version |
133 | | - python -m pip install numpy pandas scipy pytest grid2op julia "pandapower==2.14.11" |
| 131 | + python -m pip install numpy pandas scipy pytest grid2op julia "pandapower>=2.14,<3.0" |
134 | 132 |
|
135 | 133 | - name: Install Julia ${{ matrix.cfg.julia-version }} |
136 | 134 | if: matrix.cfg.label == 'installer' |
137 | 135 | uses: julia-actions/setup-julia@v2 |
138 | 136 | with: |
139 | 137 | version: ${{ matrix.cfg.julia-version }} |
140 | 138 |
|
141 | | - - name: Cache Julia |
142 | | - if: matrix.cfg.label == 'installer' |
143 | | - uses: julia-actions/cache@v2 |
144 | | - with: |
145 | | - cache-name: ${{ matrix.cfg-runs-on }}-test-${{ matrix.cfg.julia-version }}-${{ matrix.cfg.python-version }} |
146 | | - cache-packages: false |
147 | | - |
148 | 139 | - name: Install Julia power software |
149 | 140 | if: matrix.cfg.label != 'script' |
150 | 141 | run: | |
151 | 142 | julia -e ' |
152 | 143 | using Pkg |
153 | | - Pkg.add([ |
154 | | - Pkg.PackageSpec(;name="Ipopt"), |
155 | | - Pkg.PackageSpec(;name="PowerModels", version="0.21.3"), |
156 | | - Pkg.PackageSpec(;name="PyCall"), |
157 | | - Pkg.PackageSpec(;url="https://github.com/loriab/PandaModels.jl", rev="update_pm") |
158 | | - ])' |
| 144 | + # PwM alone for latest Ipopt and clean PwM test suite |
| 145 | + Pkg.add(["PowerModels", "PyCall"]) |
| 146 | + # for experimenting with full stack. "update_pm" releases PdM version pins on Iptop, etc. |
| 147 | + #Pkg.add([ |
| 148 | + # Pkg.PackageSpec(;name="Ipopt"), |
| 149 | + # Pkg.PackageSpec(;name="PowerModels", version="0.21.3"), |
| 150 | + # Pkg.PackageSpec(;name="PyCall"), |
| 151 | + # Pkg.PackageSpec(;url="https://github.com/loriab/PandaModels.jl", rev="update_pm") |
| 152 | + #])' |
159 | 153 |
|
160 | 154 | - name: Install PandaModelsBackend |
161 | 155 | if: matrix.cfg.label != 'script' |
@@ -184,12 +178,13 @@ jobs: |
184 | 178 | run: | |
185 | 179 | julia -e 'using PyCall; math = pyimport("math"); print(math.sin(math.pi/4))' |
186 | 180 | julia -e 'using Pkg; Pkg.test("PowerModels")' |
187 | | - # PM testing above is clean but takes 6m, so optionally toggle off |
| 181 | + # PwM testing above is clean but takes 6m, so optionally toggle off |
188 | 182 |
|
189 | 183 | - name: Test PandaModels in Julia |
190 | 184 | if: matrix.cfg.label != 'script' |
191 | 185 | run: | |
192 | | - julia -e 'using Pkg; Pkg.add(Pkg.PackageSpec(;name="Ipopt", version="0.9"))' |
| 186 | + julia -e 'using Pkg; Pkg.add("PandaModels")' |
| 187 | + #julia -e 'using Pkg; Pkg.add(Pkg.PackageSpec(;name="Ipopt", version="0.9"))' |
193 | 188 | julia -e 'using Pkg; Pkg.status(); Pkg.status(outdated=true)' |
194 | 189 | julia -e 'using PandaModels' |
195 | 190 | julia -e 'using Pkg; Pkg.test("PandaModels")' |
|
0 commit comments