Skip to content

Commit

Permalink
updated miniconda env in ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ang037 committed Nov 10, 2023
1 parent 57e15ed commit 466ab2d
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,22 @@ jobs:
with:
key: ${{ github.ref }}
path: .cache
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
channels: conda-forge, bioconda
activate-environment: roadies_env_test
environment-file: test/roadies_env_test.yaml
- run: pip install mkdocs-material
- run: pip install "mkdocs-material[imaging]"
- shell: bash -el {0}
- run: |
${HOME}/conda/etc/profile.d/conda.sh
${HOME}/conda/etc/profile.d/mamba.sh
conda activate roadies_env_test
- run: |
chmod +x roadies_env.sh
./roadies_env.sh
pip3 install ete3 numpy snakemake
chmod +x test/roadies_env_test.sh
./test/roadies_env_test.sh
pip3 install ete3 numpy
python run_roadies.py --cores 32 --config test/test_config.yaml --mode accurate
- run: mkdocs gh-deploy --force
31 changes: 31 additions & 0 deletions test/roadies_env_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

sudo apt-get update
sudo apt-get install -y wget unzip make g++ python3 python3-pip python3-setuptools git vim screen default-jre libgomp1 libboost-all-dev cmake

# Download ASTER repository
wget https://github.com/chaoszhang/ASTER/archive/refs/heads/Linux.zip
unzip Linux.zip
cd ASTER-Linux
make
cd ..

# Clone PASTA repository and install
git clone https://github.com/smirarab/pasta.git

# Clone Sate-Tools repository
git clone https://github.com/smirarab/sate-tools-linux.git

cd pasta
python3 setup.py develop --user
cd ..

#build sampling code
cd workflow/scripts/sampling
mkdir build
cd build
cmake ..
make
cd ../../../..

echo "Setup complete"
18 changes: 18 additions & 0 deletions test/roadies_env_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: roadies_env_test
channels:
- bioconda
- conda-forge
dependencies:
- snakemake
- alive-progress
- biopython
- iqtree=2.2.0.3
- numpy
- lastz
- mashtree
- matplotlib
- seaborn
- treeswift=1.1.28
- fasttree=2.1.11
- python=3.11
- ete3

0 comments on commit 466ab2d

Please sign in to comment.