Skip to content

Commit

Permalink
Run tests against newer elasticsearch versions
Browse files Browse the repository at this point in the history
  • Loading branch information
fizyk committed Mar 15, 2024
1 parent ae3eafe commit 287c1a9
Showing 1 changed file with 66 additions and 15 deletions.
81 changes: 66 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ main ]

jobs:
tests_8_9:
tests_8_12:
runs-on: ubuntu-latest
strategy:
fail-fast: true
Expand All @@ -17,19 +17,70 @@ jobs:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
ES_JAVA_OPTS: "-Xms256m -Xmx512m"
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pytest
with:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.12"
tests_8_11:
needs: [tests_8_12]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: [3.9, "3.10", "3.11", "3.12", pypy-3.9]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
ES_JAVA_OPTS: "-Xms256m -Xmx512m"
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pytest
with:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.11"
tests_8_10:
needs: [tests_8_11]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11", "3.12", pypy-3.9]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
ES_JAVA_OPTS: "-Xms256m -Xmx512m"
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pytest
with:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.10"
tests_8_9:
needs: [tests_8_10]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.11", "3.12"]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
ES_JAVA_OPTS: "-Xms256m -Xmx512m"
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pytest
with:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.9"
tests_8_8:
needs: [tests_8_9]
needs: [tests_8_10]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", pypy-3.9]
python-version: ["3.11", "3.12"]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
Expand All @@ -41,12 +92,12 @@ jobs:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.8"
tests_8_7:
needs: [tests_8_8]
needs: [tests_8_10]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: [3.9, "3.10", "3.11", "3.12"]
python-version: ["3.11", "3.12"]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
Expand All @@ -58,12 +109,12 @@ jobs:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.6"
tests_8_6:
needs: [tests_8_7]
needs: [tests_8_7, tests_8_8, tests_8_9]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.12"]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
Expand All @@ -75,12 +126,12 @@ jobs:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.6"
tests_8_5:
needs: [tests_8_7]
needs: [tests_8_7, tests_8_8, tests_8_9]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.12"]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
Expand All @@ -92,12 +143,12 @@ jobs:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.5"
tests_8_4:
needs: [tests_8_7]
needs: [tests_8_7, tests_8_8, tests_8_9]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.12"]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
Expand All @@ -109,12 +160,12 @@ jobs:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.4"
tests_8_3:
needs: [tests_8_7]
needs: [tests_8_7, tests_8_8, tests_8_9]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.12"]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
Expand All @@ -126,7 +177,7 @@ jobs:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.3"
tests_8_0:
needs: [tests_8_7]
needs: [tests_8_7, tests_8_8, tests_8_9]
runs-on: ubuntu-latest
strategy:
fail-fast: true
Expand All @@ -147,7 +198,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
Expand Down

0 comments on commit 287c1a9

Please sign in to comment.