From 5c7997e32ca7ebadf205ff9ef17ecc7494d9be11 Mon Sep 17 00:00:00 2001 From: DLBPointon Date: Thu, 12 Dec 2024 11:14:47 +0000 Subject: [PATCH] Updating the CICD --- .github/workflows/ci.yml | 36 +++--------------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d17b66e..8329b10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,50 +29,20 @@ jobs: - "22.10.1" - "latest-everything" steps: - - name: Get branch names - # Pulls the names of current branches in repo - # steps.branch-names.outputs.current_branch is used later and returns the name of the branch the PR is made FROM not to - id: branch-names - uses: tj-actions/branch-names@v8 - - name: Check out pipeline code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Nextflow uses: nf-core/setup-nextflow@v2 with: version: "${{ matrix.NXF_VER }}" - - name: Setup apptainer - uses: eWaterCycle/setup-apptainer@main - - - name: Set up Singularity - run: | - mkdir -p $NXF_SINGULARITY_CACHEDIR - mkdir -p $NXF_SINGULARITY_LIBRARYDIR - - - name: Install Python - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - - name: Install nf-core - run: | - pip install nf-core - - - name: NF-Core Download - download singularity containers - # Forcibly download repo on active branch and download SINGULARITY containers into the CACHE dir if not found - # Must occur after singularity install or will crash trying to dl containers - # Zip up this fresh download and run the checked out version - run: | - nf-core download sanger-tol/curationpretext --revision ${{ steps.branch-names.outputs.current_branch }} --compress none -d --force --outdir sanger-curationpretext --container-cache-utilisation amend --container-system singularity - - name: Download test data # Download A fungal test data set that is full enough to show some real output. run: | curl https://tolit.cog.sanger.ac.uk/test-data/resources/treeval/TreeValTinyData.tar.gz | tar xzf - - - name: Singularity - Run ALL_FILES pipeline with test data + - name: Run ALL_FILES pipeline with test data # Remember that you can parallelise this by using strategy.matrix run: | - nextflow run ./sanger-curationpretext/${{ steps.branch-names.outputs.current_branch }}/main.nf -profile test,singularity --outdir ./Sing-res + nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results