Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
9e7a4b19
Unverified
Commit
9e7a4b19
authored
Sep 28, 2020
by
Francisco Massa
Committed by
GitHub
Sep 28, 2020
Browse files
Revert "simulate scheduled test failure (#2714)" (#2716)
This reverts commit
81d76487
.
parent
81d76487
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
9 deletions
+24
-9
.github/failed_schedule_issue_template.md
.github/failed_schedule_issue_template.md
+1
-4
.github/workflows/tests-schedule.yml
.github/workflows/tests-schedule.yml
+23
-5
No files found.
.github/failed_schedule_issue_template.md
View file @
9e7a4b19
---
title
:
Scheduled workflow {{ env.WORKFLOW }}/{{ env.JOB }} failed
labels
:
-
bug
-
"
module:
datasets"
assignees
:
pmeier, fmassa
labels
:
bug, module
:
datasets
---
Oh no, something went wrong in the scheduled workflow {{ env.WORKFLOW }}/{{ env.JOB }}.
...
...
.github/workflows/tests-schedule.yml
View file @
9e7a4b19
name
:
tests
on
:
pull_request
:
-
"
test/test_datasets_download.py"
-
"
.github/failed_schedule_issue_template.md"
-
"
.github/workflows/tests-schedule.yml"
schedule
:
-
cron
:
"
*/3
0
*
*
*
*"
-
cron
:
"
0
9
*
*
*"
jobs
:
download
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v2
-
name
:
Set up python
uses
:
actions/setup-python@v2
with
:
python-version
:
3.6
-
name
:
Upgrade pip
run
:
python -m pip install --upgrade pip
-
name
:
Install PyTorch from the nightlies
run
:
|
pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
-
name
:
Install tests requirements
run
:
pip install pytest pytest-subtests
-
name
:
Simulate test failure
run
:
exit
1
-
name
:
Run tests
run
:
pytest test/test_datasets_download.py
-
uses
:
JasonEtco/create-an-issue@v2.4.0
name
:
Create issue if download tests failed
...
...
Write
Preview
Markdown
is supported
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