Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Julia update #148

Merged
merged 3 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .github/workflows/cont_int.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on:
on:
pull_request:
branches:
- main
Expand All @@ -27,7 +27,7 @@ jobs:
haskell: true
large-packages: true
swap-storage: true

- name: Cache RMG
id: cache-rmg
uses: actions/cache@v2
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
path: RMG-database
ref: main
fetch-depth: 1

- name: Cache ARC
id: cache-arc
uses: actions/cache@v2
Expand All @@ -91,9 +91,8 @@ jobs:
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}-t3


- name: Setup RMG-Py Env
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3.0.1
with:
miniforge-variant: Mambaforge
miniforge-version: latest
Expand All @@ -108,12 +107,10 @@ jobs:
conda-${{ runner.os }}--${{ runner.arch }}-rmgpyenv-${{ env.CACHE_NUMBER}}
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 2
CACHE_NUMBER: 3
id: cache-rmgpy-env
- name: Update environment
run: |
sed -i 's/conda-forge::julia>=1.8.5,!=1.9.0/conda-forge::julia>=1.8.5,!=1.9.0, <1.10.0/g' RMG-Py/environment.yml
mamba env update -n rmg_env -f RMG-Py/environment.yml
run: mamba env update -n rmg_env -f RMG-Py/environment.yml
if: steps.cache-rmgpy-env.outputs.cache-hit != 'true'

- name: Cythonize RMG-Py
Expand Down Expand Up @@ -166,7 +163,7 @@ jobs:
mamba install -c conda-forge pytest-cov

- name: Run T3 Tests
shell: bash -el {0}
shell: bash -el {0}
run: |
source ~/.bashrc
conda activate t3_env
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
- main
paths:
- "./Dockerfile"
- "./devtools/Dockerfile_rmgpy"

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions devtools/Dockerfile_rmgpy
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ RUN make \
# Install RMS
# The extra arguments are required to install PyCall and RMS in this Dockerfile. Will not work without them.
# Final command is to compile the RMS during Docker build - This will reduce the time it takes to run RMS for the first time
ENV JULIA_CPU_TARGET="x86-64,haswell,skylake,broadwell,znver1,znver2,znver3,cascadelake,icelake-client,cooperlake,generic,native"
RUN touch /opt/conda/envs/rmg_env/condarc-julia.yml
RUN CONDA_JL_CONDA_EXE=/bin/micromamba julia -e 'ENV["CONDA_JL_CONDA_EXE"]="/opt/conda/envs/rmg_env/bin/conda";using Pkg;Pkg.add(PackageSpec(name="PyCall", rev="master")); Pkg.build("PyCall"); Pkg.add(PackageSpec(name="ReactionMechanismSimulator", rev="main"))' \
&& python -c "import julia; julia.install(); import diffeqpy; diffeqpy.install()" \
Expand Down
Loading