-
Notifications
You must be signed in to change notification settings - Fork 122
105 lines (93 loc) · 2.56 KB
/
on-merge.yaml
File metadata and controls
105 lines (93 loc) · 2.56 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Testing (main)
on:
push:
branches:
- main
- release-candidate/*
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
- '*.txt'
- '*.html'
- '*.css'
- '*.js'
- '*.png'
- '*.jpg'
- '*.jpeg'
- '*.gif'
- '*.svg'
- '*.example'
workflow_dispatch: {}
permissions:
contents: read
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", "3.13"]'
dense_index_host: ${{ needs.create-project.outputs.index_host_dense }}
sparse_index_host: ${{ needs.create-project.outputs.index_host_sparse }}
dependency-tests:
uses: './.github/workflows/testing-dependency.yaml'
secrets: inherit
needs:
- create-project
with:
encrypted_project_api_key: ${{ needs.create-project.outputs.encrypted_project_api_key }}
install-tests:
uses: './.github/workflows/testing-install.yaml'
secrets: inherit
cleanup-project:
if: ${{ always() }}
needs:
- create-project
- integration-tests
- dependency-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 }}
package:
name: Check packaging
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.13']
steps:
- uses: actions/checkout@v4
- name: Setup uv
uses: ./.github/actions/setup-uv
with:
python_version: ${{ matrix.python-version }}
- name: Package
run: uv build
build-docs:
name: Build docs with pdoc
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build docs with pdoc
uses: './.github/actions/build-docs'
with:
python-version: 3.11