mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +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:
|
||||
changes:
|
||||
name: Check for changes
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
# Expose matched filters as job 'modules' output variable
|
||||
|
@ -43,11 +44,24 @@ jobs:
|
|||
key: ${{ runner.os }}-nextflow-${{ matrix.nxf_version }}
|
||||
restore-keys: |
|
||||
${{ 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:
|
||||
pytest_tags: ${{ matrix.tags }}
|
||||
nxf_version: ${{ matrix.nxf_version }}
|
||||
python-version: "3.x"
|
||||
- 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
|
||||
if: ${{ failure() }}
|
||||
|
|
Loading…
Reference in a new issue