Skip to content

Commit

Permalink
Merge pull request #610 from ClearcodeHQ/new-elastics
Browse files Browse the repository at this point in the history
Run tests against newer elasticsearch versions
  • Loading branch information
fizyk authored Mar 15, 2024
2 parents ae3eafe + c7a100e commit d33a3c2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 41 deletions.
65 changes: 24 additions & 41 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,7 @@ on:
branches: [ main ]

jobs:
tests_8_9:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: [3.8, 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.9"
tests_8_8:
needs: [tests_8_9]
tests_8_12:
runs-on: ubuntu-latest
strategy:
fail-fast: true
Expand All @@ -39,14 +22,14 @@ jobs:
- uses: ./.github/actions/pytest
with:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.8"
tests_8_7:
needs: [tests_8_8]
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"]
python-version: [3.9, "3.10", "3.11", "3.12", pypy-3.9]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
Expand All @@ -56,14 +39,14 @@ jobs:
- uses: ./.github/actions/pytest
with:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.6"
tests_8_6:
needs: [tests_8_7]
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"]
python-version: ["3.10", "3.11", "3.12", pypy-3.9]
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
Expand All @@ -73,14 +56,14 @@ jobs:
- uses: ./.github/actions/pytest
with:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.6"
tests_8_5:
needs: [tests_8_7]
elasticsearch: "8.10"
tests_8_9:
needs: [tests_8_10]
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 @@ -90,14 +73,14 @@ jobs:
- uses: ./.github/actions/pytest
with:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.5"
tests_8_4:
needs: [tests_8_7]
elasticsearch: "8.9"
tests_8_8:
needs: [tests_8_10]
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 @@ -107,14 +90,14 @@ jobs:
- uses: ./.github/actions/pytest
with:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.4"
tests_8_3:
needs: [tests_8_7]
elasticsearch: "8.8"
tests_8_7:
needs: [tests_8_10]
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 @@ -124,9 +107,9 @@ jobs:
- uses: ./.github/actions/pytest
with:
python-version: ${{ matrix.python-version }}
elasticsearch: "8.3"
elasticsearch: "8.7"
tests_8_0:
needs: [tests_8_7]
needs: [tests_8_10]
runs-on: ubuntu-latest
strategy:
fail-fast: true
Expand All @@ -147,7 +130,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
1 change: 1 addition & 0 deletions newsfragments/610.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Run tests on CI Against Elasticsearch 8.12, 8.11 and 8.10

0 comments on commit d33a3c2

Please sign in to comment.