-
Notifications
You must be signed in to change notification settings - Fork 116
68 lines (60 loc) · 1.7 KB
/
on-pr.yaml
File metadata and controls
68 lines (60 loc) · 1.7 KB
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
63
64
65
66
67
68
name: Testing (PR)
on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
- '*.txt'
- '*.html'
- '*.css'
- '*.js'
- '*.png'
- '*.jpg'
- '*.jpeg'
- '*.gif'
- '*.svg'
- '*.example'
workflow_dispatch:
inputs:
run_all_tests:
description: 'Run all integration tests regardless of changes'
required: false
default: 'false'
type: boolean
permissions: {}
concurrency:
group: 'ci-${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true
jobs:
linting:
uses: './.github/workflows/testing-lint.yaml'
unit-tests:
uses: './.github/workflows/testing-unit.yaml'
secrets: inherit
with:
python_versions_json: '["3.10", "3.11", "3.12", "3.13"]'
create-project:
uses: './.github/workflows/project-setup.yaml'
secrets: inherit
integration-tests:
if: always() && (needs.create-project.result == 'success')
uses: './.github/workflows/testing-integration.yaml'
secrets: inherit
needs:
- create-project
with:
encrypted_project_api_key: ${{ needs.create-project.outputs.encrypted_project_api_key }}
python_versions_json: '["3.10"]'
dense_index_host: ${{ needs.create-project.outputs.index_host_dense }}
sparse_index_host: ${{ needs.create-project.outputs.index_host_sparse }}
cleanup-project:
if: ${{ always() }}
needs:
- create-project
- integration-tests
uses: './.github/workflows/project-cleanup.yaml'
secrets: inherit
with:
project_id: ${{ needs.create-project.outputs.project_id }}
encrypted_project_api_key: ${{ needs.create-project.outputs.encrypted_project_api_key }}