-
Notifications
You must be signed in to change notification settings - Fork 5
86 lines (77 loc) · 2.9 KB
/
open-source-unit-tests.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# This workflow will run the py-marqo unit tests using the `tox` command.
# This workflow pulls a Marqo image and runs it. Py-marqo then connects to the
# running container for the tests.
# Unless otherwise specified, the Marqo version that is used for this test will be
# that specified by py-marqo's `marqo.version.__minimum_supported_marqo_version__`
name: Open source unit tests
run-name: Open source unit tests on Marqo tag ${{ inputs.image_tag }}
on:
workflow_dispatch:
inputs:
image_registry_location:
description: 'Marqo docker image registry location. Options: "ECR" or "DockerHub"'
required: true
default: 'DockerHub'
image_repo:
description: 'Marqo docker image repo name'
required: true
default: 'marqo'
image_tag:
description: 'Marqo image tag. Examples: "1.1.0", "test" "latest"'
required: true
default: 'latest'
pull_request:
branches:
- mainline
- 'releases/*'
permissions:
contents: read
jobs:
Test-Python-3-8:
uses: ./.github/workflows/open-source-unit-tests-specific-python-version.yml
secrets: inherit
with:
python_version: '3.8'
image_registry_location: ${{ inputs.image_registry_location }}
image_repo: ${{ inputs.image_repo }}
image_tag: ${{ inputs.image_tag }}
Test-Python-3-9:
uses: ./.github/workflows/open-source-unit-tests-specific-python-version.yml
secrets: inherit
with:
python_version: '3.9'
image_registry_location: ${{ inputs.image_registry_location }}
image_repo: ${{ inputs.image_repo }}
image_tag: ${{ inputs.image_tag }}
Test-Python-3-10:
uses: ./.github/workflows/open-source-unit-tests-specific-python-version.yml
secrets: inherit
with:
python_version: '3.10'
image_registry_location: ${{ inputs.image_registry_location }}
image_repo: ${{ inputs.image_repo }}
image_tag: ${{ inputs.image_tag }}
Test-Python-3-11:
uses: ./.github/workflows/open-source-unit-tests-specific-python-version.yml
secrets: inherit
with:
python_version: '3.11'
image_registry_location: ${{ inputs.image_registry_location }}
image_repo: ${{ inputs.image_repo }}
image_tag: ${{ inputs.image_tag }}
Test-Python-3-12:
uses: ./.github/workflows/open-source-unit-tests-specific-python-version.yml
secrets: inherit
with:
python_version: '3.12'
image_registry_location: ${{ inputs.image_registry_location }}
image_repo: ${{ inputs.image_repo }}
image_tag: ${{ inputs.image_tag }}
Test-Python-3-13:
uses: ./.github/workflows/open-source-unit-tests-specific-python-version.yml
secrets: inherit
with:
python_version: '3.13'
image_registry_location: ${{ inputs.image_registry_location }}
image_repo: ${{ inputs.image_repo }}
image_tag: ${{ inputs.image_tag }}