Skip to content

Commit

Permalink
Merge pull request #744 from jashapiro/743-GHA-fix-test
Browse files Browse the repository at this point in the history
Test fix for docker actions failing after miniforge
  • Loading branch information
jashapiro authored Sep 3, 2024
2 parents a5b48b0 + 2a69137 commit f9f1386
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run_cell-type-ewings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:
- main
paths:
- analyses/cell-type-ewings/**
- "!analyses/cell-type-ewings/Dockerfile"
jobs:
run-module:
if: github.repository_owner == 'AlexsLemonade'
Expand Down
9 changes: 6 additions & 3 deletions analyses/cell-type-ewings/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ RUN curl -L "https://github.com/conda-forge/miniforge/releases/latest/download/M
&& conda clean --tarballs --index-cache --packages --yes \
&& find /opt/conda -follow -type f -name '*.a' -delete \
&& find /opt/conda -follow -type f -name '*.pyc' -delete \
&& conda clean --force-pkgs-dirs --all --yes \
&& echo ". /opt/conda/etc/profile.d/conda.sh && conda activate base" >> /etc/skel/.bashrc \
&& echo ". /opt/conda/etc/profile.d/conda.sh && conda activate base" >> ~/.bashrc
&& conda clean --force-pkgs-dirs --all --yes

# Activate conda environments in bash
RUN ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh \
&& echo ". /opt/conda/etc/profile.d/conda.sh" >> /etc/skel/.bashrc \
&& echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc

# add conda-lock
RUN conda install conda-lock && conda clean --all --yes
Expand Down

0 comments on commit f9f1386

Please sign in to comment.