Skip to content

Commit

Permalink
minimise raw and endraw blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Oct 10, 2024
1 parent 42f1de4 commit ac3d577
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions nf_core/pipeline-template/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: nf-core CI
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors
# {% raw %}This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors
on:
push:
branches:
Expand All @@ -11,18 +11,18 @@ on:

env:
NXF_ANSI_LOG: false
NXF_SINGULARITY_CACHEDIR: {% raw %}${{ github.workspace }}{% endraw %}/.singularity
NXF_SINGULARITY_LIBRARYDIR: {% raw %}${{ github.workspace }}{% endraw %}/.singularity
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity

concurrency:
group: "{% raw %}${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}{% endraw %}"
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true

jobs:
test:
name: "Run pipeline with test data ({% raw %}${{ matrix.NXF_VER }}{% endraw %} | {% raw %}${{ matrix.test_name }}{% endraw %} | {% raw %}${{ matrix.profile }}{% endraw %})"
name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})"
# Only run on push if this is the nf-core dev branch (merged PRs)
if: "{% raw %}${{{% endraw %} github.event_name != 'push' || (github.event_name == 'push' && github.repository == '{{ name }}') {% raw %}}}{% endraw %}"
if: "${{{% endraw %} github.event_name != 'push' || (github.event_name == 'push' && github.repository == '{{ name }}') {% raw %}}}"
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -36,7 +36,7 @@ jobs:
test_name:
- "test"
isMaster:
- {% raw %}${{ github.base_ref == 'master' }}{% endraw %}
- ${{ github.base_ref == 'master' }}
# Exclude conda and singularity on dev
exclude:
- isMaster: false
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Set up Nextflow
uses: nf-core/setup-nextflow@v2
with:
version: "{% raw %}${{ matrix.NXF_VER }}{% endraw %}"
version: "${{ matrix.NXF_VER }}"

- name: Set up Apptainer
if: matrix.profile == 'singularity'
Expand Down Expand Up @@ -83,6 +83,6 @@ jobs:
- name: Clean up Disk space
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1

- name: "Run pipeline with test data {% raw %}${{ matrix.NXF_VER }}{% endraw %} | {% raw %}${{ matrix.test_name }}{% endraw %} | {% raw %}${{ matrix.profile }}{% endraw %}"
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
run: |
nextflow run ${GITHUB_WORKSPACE} -profile {% raw %}${{ matrix.test_name }}{% endraw %},{% raw %}${{ matrix.profile }}{% endraw %} --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.test_name }},${{ matrix.profile }} --outdir ./results{% endraw %}

0 comments on commit ac3d577

Please sign in to comment.