Fix nf-test installation for CI
#82
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: Test CCKP Toolkit Workflow | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| name: Run nf-test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Nextflow | |
| run: | | |
| curl -s https://get.nextflow.io | bash | |
| mv nextflow /usr/local/bin/ | |
| nextflow -version | |
| - name: Install nf-test | |
| run: | | |
| wget -qO- https://get.nf-test.com | bash | |
| sudo mv nf-test /usr/local/bin/ | |
| - name: Set up Docker | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Run tests | |
| run: | | |
| nf-test test main.nf.test | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-results | |
| path: | | |
| work/ | |
| .nextflow/ | |
| .nextflow.log | |
| retention-days: 7 |