|
1 | | -name: Run Milvus Integration Tests |
| 1 | +name: Run Milvus Integration Tests [PostCommit Python] |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | schedule: |
|
11 | 11 | tags: 'v*' |
12 | 12 | workflow_dispatch: |
13 | 13 |
|
| 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 | + |
14 | 42 | jobs: |
15 | | - milvus-tests: |
| 43 | + milvus_integration_tests_postcommit_python: |
16 | 44 | name: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }}) |
17 | | - runs-on: [self-hosted, ubuntu-20.04, highmem22] |
| 45 | + runs-on: ${{ matrix.os }} |
18 | 46 | timeout-minutes: 240 |
19 | 47 | strategy: |
20 | 48 | fail-fast: false |
21 | 49 | matrix: |
22 | | - job_name: [milvus-tests] |
| 50 | + job_name: [milvus_integration_tests_postcommit_python] |
23 | 51 | job_phrase: [Run Python PostCommit] |
24 | 52 | python_version: ['3.9', '3.10', '3.11', '3.12'] |
| 53 | + os: [[self-hosted, ubuntu-20.04, highmem22], ubuntu-latest] |
25 | 54 | steps: |
26 | 55 | - uses: actions/checkout@v4 |
27 | 56 | - name: Setup repository |
|
56 | 85 | -PuseWheelDistribution \ |
57 | 86 | # Conditionally add -Pposargs based on the runner type. |
58 | 87 | -Pposargs="${{ |
59 | | - contains(matrix.runner_os, 'self-hosted') && |
| 88 | + matrix.os == 'self-hosted' && |
60 | 89 | '-m ''not require_non_self_hosted''' || |
61 | 90 | '-m ''require_non_self_hosted''' |
62 | 91 | }}" \ |
|
0 commit comments