-
Notifications
You must be signed in to change notification settings - Fork 335
62 lines (54 loc) · 2 KB
/
nightly_ci.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: Nightly CI
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
- cron: '0 18 * * *'
jobs:
nightly:
name: Run Nightly CI
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
env:
IMAGE_REPO: "milvusdb"
TAG_PREFIX: "master-"
steps:
- uses: actions/checkout@v4
- name: Get the latest of Milvus dev image tag
shell: bash
id: extracter
working-directory: ci/scripts
run: echo "::set-output name=tag::$(./docker_image_find_tag.sh -n ${IMAGE_REPO}/milvus-dev -t ${TAG_PREFIX}latest -f ${TAG_PREFIX} -F -L -q)"
- name: Install Milvus
working-directory: ci/docker/milvus
run: |
IMAGE_TAG=${{ steps.extracter.outputs.tag }} docker-compose up -d
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Clone Milvus Repo
uses: actions/checkout@v4
with:
repository: milvus-io/milvus
path: 'milvus'
- name: Install PyMilvus
run: |
python3 -m pip install setuptools --upgrade
python3 -m pip install --no-cache-dir -r milvus/tests/python_client/requirements.txt
python3 -m pip uninstall -y pymilvus
python3 setup.py install
- name: Smoke Test
working-directory: milvus/tests/python_client
run: |
pytest -n 2 --tags L0 L1