Skip to content

Commit 0c9dc43

Browse files
committed
Set path in build doesn't work
1 parent 6d375f1 commit 0c9dc43

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ 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"
3032
julia -e 'using Pkg; Pkg.develop(Pkg.PackageSpec(path="../ReactionMechanismSimulator.jl/")); Pkg.build("ReactionMechanismSimulator");'
3133
- name: Run tests
3234
run: |
35+
current_path=${{ github.workspace }}
36+
export JULIA_CONDAPKG_ENV="$current_path/rms_env"
3337
julia -e 'using Pkg; Pkg.test("ReactionMechanismSimulator"; coverage=true)'
3438
- uses: julia-actions/julia-processcoverage@v1
3539
- uses: codecov/codecov-action@v1

deps/build.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ 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")
65
CondaPkg.add("rmgmolecule"; version=">=0.3.0", channel="mjohnson541")
76
end
87
if !(v"3.7" <= PythonCall.C.python_version() && PythonCall.C.python_version() <= v"3.9")

src/rmstest.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ 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")
1514
PythonCall.pycopy!(molecule, pyimport("molecule.molecule"))
1615
PythonCall.pycopy!(fragment, pyimport("molecule.molecule.fragment"))
1716
end

0 commit comments

Comments
 (0)