Skip to content

Commit

Permalink
Updated ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nschcolnicov committed Nov 28, 2024
1 parent fe516c2 commit bc0ad13
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,23 @@ jobs:
- "conda"
- "docker"
- "singularity"
isMaster:
- ${{ github.base_ref == 'master' }}
# Exclude conda and singularity on dev
exclude:
- isMaster: false
compute_profile: "conda"
- isMaster: false
compute_profile: "singularity"
test_profile:
- "test_stub"
- "test_build_stub"
include:
- test_profile: "test_cosmic"
if: ${{ secrets.COSMIC_USERNAME && secrets.COSMIC_PASSWD }}
- test_profile: "test"
if: ${{ secrets.COSMIC_USERNAME && secrets.COSMIC_PASSWD }}
- test_profile: "test_build"
if: ${{ secrets.COSMIC_USERNAME && secrets.COSMIC_PASSWD }}
exclude:
- compute_profile: "conda"
test_profile: "test_cosmic"
- compute_profile: "conda"
test_profile: "test"
- compute_profile: "conda"
test_profile: "test_build"
steps:
- name: Check out pipeline code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
Expand Down Expand Up @@ -102,19 +111,11 @@ jobs:
with:
version: ${{ env.NFT_VER }}

- name: Set test profile based on secrets
run: |
if [ -n "${{ secrets.COSMIC_USERNAME }}" ] && [ -n "${{ secrets.COSMIC_PASSWD }}" ]; then
echo "test_profile=test_cosmic,test,test_build" >> $GITHUB_ENV
else
echo "test_profile=test_stub,test_build_stub" >> $GITHUB_ENV
fi
- name: Run Tests (${{matrix.NXF_VER}} | ${{test_profile}} | ${{matrix.compute_profile}})
- name: Run Tests (${{ matrix.NXF_VER }} | ${{ matrix.test_profile }} | ${{ matrix.compute_profile }})
run: |
nf-test test \
--ci \
--tag ${{test_profile}} \
--tag ${{ matrix.test_profile }} \
--profile "+${{ matrix.compute_profile }}" \
--junitxml=test.xml \
--debug --verbose
Expand Down

0 comments on commit bc0ad13

Please sign in to comment.