Skip to content

Commit ac341cc

Browse files
committed
update
1 parent f4cda4a commit ac341cc

1 file changed

Lines changed: 34 additions & 5 deletions

File tree

.github/workflows/milvus_integration_tests.yml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Milvus Integration Tests
1+
name: Run Milvus Integration Tests [PostCommit Python]
22

33
on:
44
schedule:
@@ -11,17 +11,46 @@ on:
1111
tags: 'v*'
1212
workflow_dispatch:
1313

14+
# This allows a subsequently queued workflow run to interrupt previous runs
15+
concurrency:
16+
group: '${{ github.workflow }} @ ${{ github.event.issue.number || github.sha || github.head_ref || github.ref }}-${{ github.event.schedule || github.event.comment.id || github.event.sender.login }}'
17+
cancel-in-progress: true
18+
19+
#Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event
20+
permissions:
21+
actions: write
22+
pull-requests: write
23+
checks: write
24+
contents: read
25+
deployments: read
26+
id-token: none
27+
issues: write
28+
discussions: read
29+
packages: read
30+
pages: read
31+
repository-projects: read
32+
security-events: read
33+
statuses: read
34+
35+
env:
36+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
37+
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }}
38+
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }}
39+
ALLOYDB_PASSWORD: ${{ secrets.ALLOYDB_PASSWORD }}
40+
41+
1442
jobs:
15-
milvus-tests:
43+
milvus_integration_tests_postcommit_python:
1644
name: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }})
17-
runs-on: [self-hosted, ubuntu-20.04, highmem22]
45+
runs-on: ${{ matrix.os }}
1846
timeout-minutes: 240
1947
strategy:
2048
fail-fast: false
2149
matrix:
22-
job_name: [milvus-tests]
50+
job_name: [milvus_integration_tests_postcommit_python]
2351
job_phrase: [Run Python PostCommit]
2452
python_version: ['3.9', '3.10', '3.11', '3.12']
53+
os: [[self-hosted, ubuntu-20.04, highmem22], ubuntu-latest]
2554
steps:
2655
- uses: actions/checkout@v4
2756
- name: Setup repository
@@ -56,7 +85,7 @@ jobs:
5685
-PuseWheelDistribution \
5786
# Conditionally add -Pposargs based on the runner type.
5887
-Pposargs="${{
59-
contains(matrix.runner_os, 'self-hosted') &&
88+
matrix.os == 'self-hosted' &&
6089
'-m ''not require_non_self_hosted''' ||
6190
'-m ''require_non_self_hosted'''
6291
}}" \

0 commit comments

Comments
 (0)