Skip to content

Commit

Permalink
Fix root directory calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLoecker committed Oct 9, 2024
1 parent 2314bac commit b7e2c53
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ jobs:
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
builder: ${{ steps.buildx.outputs.name }}
platforms: ${{ matrix.platform }}
`platforms: ${{ matrix.platform }}

11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ RUN sed -i '/^python/d' /opt/conda/conda-meta/pinned && \
echo "c.ServerApp.root_dir = '${HOME}/main'" >> "${HOME}/.jupyter/jupyter_notebook_config.py" && \
echo "c.ServerApp.token = ''" >> "${HOME}/.jupyter/jupyter_notebook_config.py" && \
echo "c.ServerApp.password = ''" >> "${HOME}/.jupyter/jupyter_notebook_config.py" && \
conda config --quiet --add channels conda-forge && \
conda config --quiet --add channels bioconda && \
conda config --quiet --add channels r && \
rm -rf "${HOME}/main/tests" # Remove tests, they are not required for running COMO
mamba config --quiet --add channels conda-forge && \
mamba config --quiet --add channels bioconda && \
mamba config --quiet --add channels r && \
rm -rf "${HOME}/main/tests" # Tests not required for running COMO

# Update base environment
RUN ls "${HOME}" && \
mamba env update --name=base --file="${HOME}/environment.yaml" && \
RUN mamba env update --name=base --file="${HOME}/environment.yaml" && \
R -e "devtools::install_github('babessell1/zFPKM')" && \
pip cache purge && \
mamba clean --all --yes
Expand Down
10 changes: 5 additions & 5 deletions main/tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

def test_config():
configs = project.Config()
current_dir = Path(__file__).parent
root_dir = Path(__file__).parent.parent

assert configs.data_dir == current_dir / "data"
assert configs.config_dir == current_dir / "data" / "config_sheets"
assert configs.result_dir == current_dir / "data" / "results"
assert configs.code_dir == current_dir / "como"
assert configs.data_dir == root_dir / "data"
assert configs.config_dir == root_dir / "data" / "config_sheets"
assert configs.result_dir == root_dir / "data" / "results"
assert configs.code_dir == root_dir / "como"

0 comments on commit b7e2c53

Please sign in to comment.