Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hem
hamlet
Commits
f796a92b
Commit
f796a92b
authored
May 11, 2021
by
van den Berg
Browse files
Add github workflow for sanity tests
parent
f5e6b40a
Changes
2
Hide whitespace changes
Inline
Side-by-side
.github/PULL_REQUEST_TEMPLATE.md
0 → 100644
View file @
f796a92b
### Checklist
-
[ ] Pull request details were added to CHANGELOG.md.
-
[ ] Documentation was updated (if required).
-
[ ] New tests have been added to the matrix section of the
.github/workflows/ci.yml file.
.github/workflows/ci.yml
0 → 100644
View file @
f796a92b
name
:
Continuous Integration
on
:
[
push
,
pull_request
]
defaults
:
run
:
# This is needed for miniconda, see:
# https://github.com/marketplace/actions/setup-miniconda#important.
shell
:
bash -l {0}
jobs
:
test
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
test
:
-
sanity
steps
:
-
uses
:
actions/checkout@v2.3.4
# https://github.com/actions/checkout.
with
:
submodules
:
recursive
-
name
:
Set up Conda environment
uses
:
conda-incubator/setup-miniconda@v2.0.1
# https://github.com/conda-incubator/setup-miniconda.
with
:
activate-environment
:
HAMLET
environment-file
:
environment.yml
auto-activate-base
:
false
-
name
:
Install singularity
uses
:
eWaterCycle/setup-singularity@v6
with
:
singularity-version
:
3.6.4
-
name
:
Run test in conda environment
# Use --symlink to limit disk usage.
run
:
>-
pytest --keep-workflow-wd-on-fail --tag ${{ matrix.test }}
--symlink tests/
-
name
:
Check cromwell log in case of failure.
if
:
${{ failure() }}
# Get the last 1000 lines of the cromwell log to catch the error.
run
:
bash -c 'tail -n 1000 /tmp/pytest_workflow_*/*/log.out'
-
name
:
Check pytest stdout messages in case of failure
if
:
${{ failure() }}
run
:
>-
bash -c '
for file in $(find /tmp -name log.out);
do echo $file; cat $file; done'
-
name
:
Check pytest stderr messages in case of failure
if
:
${{ failure() }}
run
:
>-
bash -c '
for file in $(find /tmp -name log.err);
do echo $file; cat $file; done'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment