|
13 | 13 | pull_request:
|
14 | 14 | branches: [ main ]
|
15 | 15 | jobs:
|
16 |
| - run-examples: |
| 16 | + run-examples-with-latest-release: |
17 | 17 | strategy:
|
18 | 18 | fail-fast: false
|
19 | 19 | matrix:
|
|
22 | 22 | coherence-image:
|
23 | 23 | - ghcr.io/oracle/coherence-ce
|
24 | 24 | coherenceVersion:
|
25 |
| - - 25.03 |
| 25 | + - 25.03.1 |
26 | 26 | runs-on: ${{ matrix.os }}
|
27 | 27 | steps:
|
28 | 28 | - name: Get Docker Images
|
|
57 | 57 | COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 python3 $file
|
58 | 58 | echo "==== Done running example ${file} ======"
|
59 | 59 | 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