mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-09-20 23:32:05 +00:00
refactor: Move away from composite-action
This commit is contained in:
parent
6da00a8a1b
commit
ce2a5b32f5
1 changed files with 18 additions and 4 deletions
22
.github/workflows/pytest-workflow.yml
vendored
22
.github/workflows/pytest-workflow.yml
vendored
|
@ -3,6 +3,7 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changes:
|
changes:
|
||||||
|
name: Check for changes
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
# Expose matched filters as job 'modules' output variable
|
# Expose matched filters as job 'modules' output variable
|
||||||
|
@ -43,11 +44,24 @@ jobs:
|
||||||
key: ${{ runner.os }}-nextflow-${{ matrix.nxf_version }}
|
key: ${{ runner.os }}-nextflow-${{ matrix.nxf_version }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-nextflow-
|
${{ runner.os }}-nextflow-
|
||||||
- name: Nextflow pytest-workflow
|
|
||||||
uses: Emiller88/pytest-workflow-composite-action@master
|
- name: Install Nextflow
|
||||||
|
env:
|
||||||
|
NXF_VER: ${{ matrix.nxf_version }}
|
||||||
|
run: |
|
||||||
|
wget -qO- get.nextflow.io | bash
|
||||||
|
sudo mv nextflow /usr/local/bin/
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
pytest_tags: ${{ matrix.tags }}
|
python-version: "3.x"
|
||||||
nxf_version: ${{ matrix.nxf_version }}
|
- name: Install dependencies
|
||||||
|
run: python -m pip install --upgrade pip pytest-workflow
|
||||||
|
|
||||||
|
# Test the module
|
||||||
|
- name: Run pytest-workflow
|
||||||
|
run: pytest --tag ${{ matrix.tags }} --symlink --wt 2
|
||||||
|
|
||||||
- name: Upload logs on failure
|
- name: Upload logs on failure
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
|
|
Loading…
Reference in a new issue