Skip to content

Commit

Permalink
Change GenX path, cache python env
Browse files Browse the repository at this point in the history
Hopefully this speeds things up and fixes bug.
  • Loading branch information
gschivley committed May 21, 2024
1 parent 02e8e03 commit 5f84273
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/test_example_system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
repository: GenXProject/GenX.jl
ref: support/0.3.x
path: GenX.jl
path: GenX

# Step 2: Install Julia
- name: Set up Julia
Expand All @@ -31,9 +31,12 @@ jobs:

# Step 3: Install GenX.jl package using the checked out directory
- name: Install GenX.jl
run: |
cd GenX.jl
julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()'
uses: julia-actions/julia-buildpkg
with:
project: GenX
# run: |
# cd GenX
# julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()'

# Step 4: Checkout the current repository
- name: Checkout current repository
Expand All @@ -60,11 +63,11 @@ jobs:
# - name: Install Conda environment with Micromamba
# uses: mamba-org/setup-micromamba@v1
# with:
# environment-file: ${{ github.workspace }}/current-repo/environment.yml
# cache-environment: true
- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ${{ github.workspace }}/PowerGenome/environment.yml
cache-environment: true

- name: install powergenome
run: |
Expand All @@ -88,5 +91,6 @@ jobs:
- name: Run GenX
run: |
julia project=${{ github.workspace }}/GenX.jl ${{ github.workspace }}/current-repo/example_systems/CA_AZ/genx-test/p1/Inputs/Inputs_p1/Run.jl
cd ${{ github.workspace }}/GenX
julia ${{ github.workspace }}/current-repo/example_systems/CA_AZ/genx-test/p1/Inputs/Inputs_p1/Run.jl

0 comments on commit 5f84273

Please sign in to comment.