-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from luslab/dev
Final release fixes
- Loading branch information
Showing
9 changed files
with
45 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,11 @@ on: | |
release: | ||
types: [published] | ||
|
||
# Cancel if a newer run is started | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
############################## | ||
### SMALL INTEGRATION TEST ### | ||
|
@@ -230,25 +235,23 @@ jobs: | |
- name: Run pytest-workflow | ||
uses: Wandalen/[email protected] | ||
with: | ||
command: pytest --tag ${{ matrix.tags }} --kwdof | ||
command: TMPDIR=~ PROFILE=docker pytest --tag ${{ matrix.tags }} --symlink --kwdof --color=yes | ||
attempt_limit: 3 | ||
|
||
- name: Output log on failure | ||
if: failure() | ||
run: | | ||
sudo apt install bat > /dev/null | ||
batcat --decorations=always --color=always /tmp/pytest_workflow_*/*/log.{out,err} | ||
batcat --decorations=always --color=always /home/runner/pytest_workflow_*/*/log.{out,err} | ||
- name: Upload logs on failure | ||
if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: logs-${{ matrix.profile }} | ||
name: logs-unit-tests | ||
path: | | ||
/tmp/pytest_workflow_*/*/.nextflow.log | ||
/tmp/pytest_workflow_*/*/log.out | ||
/tmp/pytest_workflow_*/*/log.err | ||
/tmp/pytest_workflow_*/*/work | ||
/tmp/pytest_workflow_*/**/.command.log | ||
!/tmp/pytest_workflow_*/*/work/conda | ||
!/tmp/pytest_workflow_*/*/work/singularity | ||
/home/runner/pytest_workflow_*/*/.nextflow.log | ||
/home/runner/pytest_workflow_*/*/log.out | ||
/home/runner/pytest_workflow_*/*/log.err | ||
/home/runner/pytest_workflow_*/*/work | ||
!/home/runner/pytest_workflow_*/*/work/conda | ||
!/home/runner/pytest_workflow_*/*/work/singularity |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
params { | ||
outdir = "results/" | ||
publish_dir_mode = "copy" | ||
enable_conda = false | ||
singularity_pull_docker_container = false | ||
} | ||
|
||
process { | ||
cpus = 2 | ||
memory = 6.GB | ||
time = 6.h | ||
} | ||
} | ||
|
||
if ("$PROFILE" == "singularity") { | ||
singularity.enabled = true | ||
singularity.autoMounts = true | ||
} else if ("$PROFILE" == "conda") { | ||
params.enable_conda = true | ||
} else { | ||
docker.enabled = true | ||
docker.userEmulation = true | ||
docker.runOptions = "--platform linux/x86_64" | ||
} |