no workdir env var #132
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: nextflow.py CI | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| nextflow-version: | |
| - "24.10.4" | |
| - "23.10.4" | |
| - "22.10.8" | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Determine Java version | |
| run: | | |
| if [[ "${{ matrix.nextflow-version }}" == "24.10.4" ]]; then | |
| echo "JAVA_VERSION=17" >> $GITHUB_ENV | |
| else | |
| echo "JAVA_VERSION=11" >> $GITHUB_ENV | |
| fi | |
| - name: Set up Java | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| - name: Install Nextflow ${{ matrix.nextflow-version }} | |
| run: | | |
| mkdir install | |
| cd install | |
| export NXF_VER=${{ matrix.nextflow-version }} | |
| curl -s https://get.nextflow.io | bash | |
| chmod +x nextflow | |
| mv nextflow /usr/local/bin | |
| cd .. | |
| rm -r install | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install python-coveralls | |
| pip install freezegun | |
| pip install coverage==4.5.4 | |
| - name: Test | |
| run: | | |
| python -m unittest discover tests |