Skip to content

Commit 6d375f1

Browse files
committed
Set env path in build and rmstest
1 parent 33dc66f commit 6d375f1

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ jobs:
2727
- uses: julia-actions/julia-buildpkg@v1
2828
- name: Build
2929
run: |
30-
current_path=${{ github.workspace }}
31-
export JULIA_CONDAPKG_ENV="$current_path/rms_env"
3230
julia -e 'using Pkg; Pkg.develop(Pkg.PackageSpec(path="../ReactionMechanismSimulator.jl/")); Pkg.build("ReactionMechanismSimulator");'
3331
- name: Run tests
3432
run: |

deps/build.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ using CondaPkg
22
using PythonCall
33
packages = keys(CondaPkg.current_packages())
44
if !("rmg" in packages) && !("rmgmolecule" in packages)
5+
ENV["JULIA_CONDAPKG_ENV"] = abspath("../rms_env")
56
CondaPkg.add("rmgmolecule"; version=">=0.3.0", channel="mjohnson541")
67
end
78
if !(v"3.7" <= PythonCall.C.python_version() && PythonCall.C.python_version() <= v"3.9")

src/rmstest.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ try
1111
PythonCall.pycopy!(molecule, pyimport("rmgpy.molecule"))
1212
PythonCall.pycopy!(fragment, pyimport("rmgpy.molecule.fragment"))
1313
catch e
14+
ENV["JULIA_CONDAPKG_ENV"] = abspath("../../rms_env")
1415
PythonCall.pycopy!(molecule, pyimport("molecule.molecule"))
1516
PythonCall.pycopy!(fragment, pyimport("molecule.molecule.fragment"))
1617
end

0 commit comments

Comments
 (0)