-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (53 loc) · 1.38 KB
/
cv-yolo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: YOLO
on:
schedule:
# Since tasks rely on the docker image "docker.io/platiagro/platiagro-notebook-image",
# we schedule a run to check if any changes (eg. on requirements.txt) broke any tests
# Runs once a week (on Wednesdays 8:30am)
- cron: '30 8 * * 3'
push:
branches:
- main
- v*-branch
- develop
paths:
- tasks/cv-yolo/**
- tests/datasets.py
- tests/server.py
- tests/test_cv_yolo.py
pull_request:
branches:
- main
- v*-branch
- develop
paths:
- tasks/cv-yolo/**
- tests/datasets.py
- tests/server.py
- tests/test_cv_yolo.py
jobs:
build:
runs-on: ubuntu-latest
# runs all of the steps inside the specified container rather than on the VM host.
# Because of this the network configuration changes from host based network to a container network.
container:
image: platiagro/platiagro-notebook-image:0.3.0
services:
minio:
image: bitnami/minio:latest
env:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
ports:
- 9000:9000
steps:
- uses: actions/checkout@v2
- name: Test with pytest
run: |
pip install pytest
pytest -v tests/test_cv_yolo.py
timeout-minutes: 30
env:
MINIO_ENDPOINT: minio:9000
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123