Skip to content

Commit 0eb945e

Browse files
committed
Update example yaml to run against current branch
1 parent 3b8b5ac commit 0eb945e

File tree

1 file changed

+55
-2
lines changed

1 file changed

+55
-2
lines changed

.github/workflows/run-examples.yaml

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
pull_request:
1414
branches: [ main ]
1515
jobs:
16-
run-examples:
16+
run-examples-with-latest-release:
1717
strategy:
1818
fail-fast: false
1919
matrix:
@@ -22,7 +22,7 @@ jobs:
2222
coherence-image:
2323
- ghcr.io/oracle/coherence-ce
2424
coherenceVersion:
25-
- 25.03
25+
- 25.03.1
2626
runs-on: ${{ matrix.os }}
2727
steps:
2828
- name: Get Docker Images
@@ -57,3 +57,56 @@ jobs:
5757
COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 python3 $file
5858
echo "==== Done running example ${file} ======"
5959
done
60+
# Now run example with main
61+
run-examples-with-main:
62+
strategy:
63+
fail-fast: false
64+
matrix:
65+
python-version: ["3.9.x"]
66+
poetry-version: ["1.8.4"]
67+
os: [ubuntu-latest]
68+
coherence-image:
69+
- ghcr.io/oracle/coherence-ce
70+
coherenceVersion:
71+
- 25.03.1
72+
runs-on: ${{ matrix.os }}
73+
steps:
74+
- name: Get Docker Images
75+
shell: bash
76+
run: |
77+
docker pull ${{ matrix.coherence-image }}:${{ matrix.coherenceVersion }}
78+
79+
- uses: actions/checkout@v4
80+
- uses: actions/setup-python@v5
81+
with:
82+
python-version: ${{ matrix.python-version }}
83+
84+
- name: Install Poetry
85+
shell: bash
86+
run: |
87+
pip install poetry==${{ matrix.poetry-version }}
88+
89+
- name: Install Dependencies
90+
run: python -m poetry install
91+
92+
- name: Install Coherence Python Client
93+
shell: bash
94+
run: |
95+
python -m pip install --upgrade pip
96+
pip install sentence-transformers # required for vector_search example
97+
98+
- name: Start the Server using image
99+
shell: bash
100+
run: |
101+
docker run -d -p 1408:1408 ${{ matrix.coherence-image }}:${{ matrix.coherenceVersion }}
102+
sleep 20
103+
104+
- name: Run the example
105+
shell: bash
106+
run: |
107+
cd examples
108+
for file in *.py; do
109+
echo "Run example ${file}"
110+
COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 python3 $file
111+
echo "==== Done running example ${file} ======"
112+
done

0 commit comments

Comments
 (0)