latest-full #93
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: latest-full | |
| on: | |
| schedule: | |
| - cron: "10 0 * * 1" | |
| workflow_dispatch: | |
| release: | |
| types: [published] # Shouldn't it rather be before publishing? | |
| env: | |
| COMPAREM2_PROFILE: "profile/conda/default" | |
| jobs: | |
| build: | |
| runs-on: self-hosted | |
| timeout-minutes: 1440 | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Conda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-update-conda: true | |
| miniconda-version: "latest" | |
| channels: conda-forge,bioconda | |
| channel-priority: strict | |
| - name: Create Conda environment | |
| run: | | |
| conda env create -f resources/env_current.yaml # Replace with your Conda environment file | |
| - name: test installation | |
| run: | | |
| conda activate comparem2_launcher | |
| python --version | |
| snakemake --version | |
| ./comparem2 --help | |
| ./comparem2 --version | |
| ./comparem2 --cite | |
| - name: dry run | |
| run: | | |
| conda activate comparem2_launcher | |
| ./comparem2 --dry-run | |
| rm -rf .snakemake results_comparem2 | |
| ./comparem2 --until metadata | |
| rm -rf .snakemake results_comparem2 | |
| touch dummy_1.fa; ./comparem2 --dry-run | |
| touch dummy_2.fa; ./comparem2 --dry-run | |
| touch dummy_3.fa; ./comparem2 --dry-run | |
| unzip tests/E._faecium/fna.zip | |
| ./comparem2 --config input_genomes="*.fna" add_ncbi="GCF_009734005.1,GCF_029023785.1" --dry-run | |
| ./comparem2 --config input_genomes="*.fna" add_ncbi="GCF_009734005.1,GCF_029023785.1" --until fast --dry-run | |
| ./comparem2 --config input_genomes="*.fna" add_ncbi="GCF_009734005.1,GCF_029023785.1" --until isolate --dry-run | |
| ./comparem2 --config input_genomes="*.fna" add_ncbi="GCF_009734005.1,GCF_029023785.1" --until meta --dry-run | |
| ./comparem2 --config input_genomes="*.fna" add_ncbi="GCF_009734005.1,GCF_029023785.1" --until downloads --dry-run | |
| ls dummy_{2,3}.fa > fofn.txt; ./comparem2 --config fofn="fofn.txt" --dry-run | |
| rm -rf *.fna | |
| - name: fast | |
| run: | | |
| conda activate comparem2_launcher | |
| unzip tests/E._faecium/fna.zip | |
| ./comparem2 --config input_genomes="*.fna" add_ncbi="GCF_009734005.1,GCF_029023785.1" --until fast | |
| - name: prokka | |
| run: | | |
| conda activate comparem2_launcher | |
| ./comparem2 --config input_genomes="*.fna" add_ncbi="GCF_009734005.1,GCF_029023785.1" annotator=prokka --until annotate | |
| - name: full | |
| run: | | |
| conda activate comparem2_launcher | |
| ./comparem2 --config input_genomes="*.fna" add_ncbi="GCF_009734005.1,GCF_029023785.1" --omit-from gapseq_fill eggnog_download # omitting eggnog for now because the download will fail | |
| - name: status | |
| run: | | |
| conda activate comparem2_launcher | |
| ./comparem2 --status | |
| # Runner can be started from thylakoid@johans: | |
| # sudo -u ci-runner bash | |
| # cd /mnt/evo/actions-runner/ | |
| # ./run.sh |