Commit 96b72a2a authored by Chris Cheshire's avatar Chris Cheshire
Browse files

Updated CI script

parent d7372d43
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -180,33 +180,33 @@ jobs:
          - test_conseneus_peaks_invalid
          - verify_output_reporting
    steps:
      - uses: actions/checkout@v2
      - name: Checkout Code
        uses: actions/checkout@v2

      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: "3.x"

      - uses: actions/cache@v2
      - name: Setup Pip Cache
        uses: actions/cache@v2
        with:
          path: ~/.cache/pip
          key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
          restore-keys: |
            ${{ runner.os }}-pip-
      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: "3.x"

      - name: Install Python dependencies
        run: python -m pip install --upgrade pip pytest-workflow

      - uses: actions/cache@v2
      - name: Restore Keys
        uses: actions/cache@v2
        with:
          path: /usr/local/bin/nextflow
          key: ${{ runner.os }}-nextflow-${{ matrix.nxf_version }}
          restore-keys: |
            ${{ runner.os }}-nextflow-

      - name: Install Nextflow
        env:
          NXF_VER: ${{ matrix.nxf_version }}
@@ -214,8 +214,12 @@ jobs:
        run: |
          wget -qO- get.nextflow.io | bash
          sudo mv nextflow /usr/local/bin/

      - name: Run pytest-workflow
        run: pytest --tag ${{ matrix.tags }} --kwdof
        uses: Wandalen/wretry.action@v1.0.11
        with:
          command: pytest --tag ${{ matrix.tags }} --kwdof
          attempt_limit: 3

      - name: Upload logs on failure
        if: failure()