Skip to content

Commit a876e89

Browse files
authored
Merge pull request #90 from scaleapi/da-fix-tests-and-add-nightly
Fix tests and add nightly builds
2 parents b41a673 + dd61dbe commit a876e89

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.circleci/config.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# CircleCI jobs are only enabled to on Pull Requests and commits to master branch.
22
# "Only build pull requests" enabled in Project's Advanced Settings.
33
version: 2.1
4+
45
jobs:
56
build_test:
67
docker:
@@ -38,15 +39,13 @@ jobs:
3839
poetry run coverage run --include=nucleus/* -m pytest -s -v --junitxml=test_results/junit.xml
3940
poetry run coverage report
4041
poetry run coverage html
41-
4242
- store_test_results:
4343
path: htmlcov
44-
4544
- store_test_results:
4645
path: test_results
47-
4846
- store_artifacts:
49-
path: test_results
47+
path: test_results
48+
5049
pypi_publish:
5150
docker:
5251
- image: cimg/python:3.6
@@ -83,6 +82,16 @@ jobs:
8382
fi
8483
poetry publish --username=$PYPI_USERNAME --password=$PYPI_PASSWORD
8584
workflows:
85+
nightly_build_test:
86+
triggers:
87+
- schedule:
88+
cron: "0 0 * * *"
89+
filters:
90+
branches:
91+
only:
92+
- master
93+
jobs:
94+
- build_test
8695
build_test_publish:
8796
jobs:
8897
- build_test:

tests/test_prediction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def test_mixed_pred_upload_async(model_run: ModelRun):
293293
"job_id": job.id,
294294
"status": "Completed",
295295
"message": {
296-
"annotation_upload": {
296+
"prediction_upload": {
297297
"epoch": 1,
298298
"total": 2,
299299
"errored": 0,
@@ -331,7 +331,7 @@ def test_mixed_pred_upload_async_with_error(model_run: ModelRun):
331331
"job_id": job.id,
332332
"status": "Completed",
333333
"message": {
334-
"annotation_upload": {
334+
"prediction_upload": {
335335
"epoch": 1,
336336
"total": 2,
337337
"errored": 1,

0 commit comments

Comments
 (0)