add mag test dataset #11
Workflow file for this run
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: nf-test for subworkflows | |
| on: | |
| push: | |
| branches: ["master", "fix/github-actions"] | |
| pull_request: | |
| branches: ["master"] | |
| jobs: | |
| subwf-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v2 | |
| with: | |
| java-version: '17' | |
| distribution: 'adopt' | |
| - name: Setup Nextflow latest-edge | |
| uses: nf-core/setup-nextflow@v1 | |
| with: | |
| version: "25.10.0" | |
| - name: Setup nf-test | |
| uses: nf-core/setup-nf-test@v1.3.6 | |
| with: | |
| install-pdiff: true | |
| - name: Free disk space | |
| run: | | |
| echo "Disk before cleanup:" | |
| df -h | |
| docker system prune -af || true | |
| docker volume prune -f || true | |
| sudo rm -rf /usr/share/dotnet || true | |
| sudo rm -rf /opt/ghc || true | |
| sudo rm -rf /usr/local/lib/android || true | |
| sudo rm -rf /opt/hostedtoolcache/CodeQL || true | |
| echo "Disk after cleanup:" | |
| df -h | |
| - name: Run Tests | |
| run: nf-test test --verbose --tag subworkflows --profile docker,local | |
| - name: Move .nf-test output to non-hidden folder for artifact upload | |
| if: always() | |
| run: | | |
| echo "changing name of .nf-test dir" | |
| mv .nf-test nf-test-output | |
| - name: Store the nf-test results if nf-test failed | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nf-test-out | |
| include-hidden-files: true | |
| path: | | |
| ${{ github.workspace }}/nf-test-output |