Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Update language versions #111

Merged
merged 10 commits into from Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/test-java-jdbc.yml
Expand Up @@ -28,13 +28,17 @@ concurrency:

jobs:
test:
name: "CrateDB: ${{ matrix.cratedb-version }}
name: "
Java: ${{ matrix.java-version }}
CrateDB: ${{ matrix.cratedb-version }}
on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
cratedb-version: [ "nightly" ]
os: [ 'ubuntu-latest' ]
java-version: [ '11', '17', '21' ]
cratedb-version: [ 'nightly' ]

services:
cratedb:
Expand Down Expand Up @@ -65,7 +69,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "11"
java-version: ${{ matrix.java-version }}
cache: "maven"

- name: Validate by-language/java-jdbc
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test-java-jooq.yml
Expand Up @@ -28,13 +28,17 @@ concurrency:

jobs:
test:
name: "CrateDB: ${{ matrix.cratedb-version }}
name: "
Java: ${{ matrix.java-version }}
CrateDB: ${{ matrix.cratedb-version }}
on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
cratedb-version: [ "nightly" ]
os: [ 'ubuntu-latest' ]
java-version: [ '17', '21' ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: why not adding 11 here as well?

cratedb-version: [ 'nightly' ]

services:
cratedb:
Expand Down Expand Up @@ -65,7 +69,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
java-version: ${{ matrix.java-version }}
cache: "gradle"

- name: Validate by-language/java-jooq
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test-langchain.yml
Expand Up @@ -28,16 +28,17 @@ concurrency:

jobs:
test:
name: "CrateDB: ${{ matrix.cratedb-version }}
name: "
Python: ${{ matrix.python-version }}
CrateDB: ${{ matrix.cratedb-version }}
on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
cratedb-version: [ "nightly" ]
python-version: [ "3.11" ]
os: [ 'ubuntu-latest' ]
python-version: [ '3.11' ]
cratedb-version: [ 'nightly' ]

services:
cratedb:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/test-npgsql.yml
Expand Up @@ -33,18 +33,18 @@ defaults:
jobs:
test:
name: "
Npgsql: ${{ matrix.npgsql-version }}
.NET: ${{ matrix.dotnet-version }}
Npgsql: ${{ matrix.npgsql-version }}
CrateDB: ${{ matrix.cratedb-version }}
on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] # , macos-latest
dotnet-version: ['5.0.x', '6.0.x', '7.0.x']
cratedb-version: ['nightly']
npgsql-version: ['6.0.9', '7.0.6']
os: [ 'ubuntu-latest' ]
dotnet-version: [ '5.0.x', '6.0.x', '7.0.x' ]
npgsql-version: [ '6.0.10', '7.0.6' ]
cratedb-version: [ 'nightly' ]

# https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers
services:
Expand All @@ -55,6 +55,7 @@ jobs:
- 5432:5432

steps:

- name: Acquire sources
uses: actions/checkout@v4

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test-php-amphp.yml
Expand Up @@ -28,16 +28,17 @@ concurrency:

jobs:
test:
name: "CrateDB: ${{ matrix.cratedb-version }}
name: "
PHP: ${{ matrix.php-version }}
CrateDB: ${{ matrix.cratedb-version }}
on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
cratedb-version: [ "nightly" ]
php-version: [ "7.4", "8.2" ]
os: [ 'ubuntu-latest' ]
php-version: [ '7.4', '8.2', '8.3' ]
cratedb-version: [ 'nightly' ]

services:
cratedb:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test-php-pdo.yml
Expand Up @@ -28,16 +28,17 @@ concurrency:

jobs:
test:
name: "CrateDB: ${{ matrix.cratedb-version }}
name: "
PHP: ${{ matrix.php-version }}
CrateDB: ${{ matrix.cratedb-version }}
on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
cratedb-version: [ "nightly" ]
php-version: [ "7.4", "8.2" ]
os: [ 'ubuntu-latest' ]
php-version: [ '7.4', '8.2', '8.3' ]
cratedb-version: [ 'nightly' ]

services:
cratedb:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test-python-sqlalchemy.yml
Expand Up @@ -28,16 +28,17 @@ concurrency:

jobs:
test:
name: "CrateDB: ${{ matrix.cratedb-version }}
name: "
Python: ${{ matrix.python-version }}
CrateDB: ${{ matrix.cratedb-version }}
on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
cratedb-version: [ "nightly" ]
python-version: [ "3.11" ]
os: [ 'ubuntu-latest' ]
python-version: [ '3.11', '3.12' ]
cratedb-version: [ 'nightly' ]

services:
cratedb:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test-ruby.yml
Expand Up @@ -28,16 +28,17 @@ concurrency:

jobs:
test:
name: "CrateDB: ${{ matrix.cratedb-version }}
name: "
Ruby: ${{ matrix.ruby-version }}
CrateDB: ${{ matrix.cratedb-version }}
on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
cratedb-version: [ "nightly" ]
ruby-version: [ "2.7", "3.0", "3.1", "truffleruby" ]
os: [ 'ubuntu-latest' ]
ruby-version: [ '2.7', '3.0', '3.1', '3.2', 'truffleruby', 'truffleruby+graalvm' ]
cratedb-version: [ 'nightly' ]

services:
cratedb:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/testcontainers-java.yml
Expand Up @@ -28,12 +28,17 @@ concurrency:

jobs:
test:
name: "CrateDB: ${{ matrix.cratedb-version }}
name: "
Java: ${{ matrix.java-version }}
CrateDB: ${{ matrix.cratedb-version }}
on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
os: [ 'ubuntu-latest' ]
java-version: [ '11', '17', '21' ]
cratedb-version: [ 'nightly' ]

steps:

Expand All @@ -57,7 +62,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
java-version: ${{ matrix.java-version }}
cache: "gradle"

- name: Validate testing/testcontainers/java
Expand Down
2 changes: 0 additions & 2 deletions by-language/python-sqlalchemy/insert_dask.py
Expand Up @@ -14,12 +14,10 @@

"""
import dask.dataframe as dd
import pkg_resources
from dask.diagnostics import ProgressBar
from pandas._testing import makeTimeDataFrame
from crate.client.sqlalchemy.support import insert_bulk

pkg_resources.require("sqlalchemy>=2.0")

DBURI = "crate://localhost:4200"

Expand Down
2 changes: 0 additions & 2 deletions by-language/python-sqlalchemy/insert_pandas.py
Expand Up @@ -48,7 +48,6 @@

import click
import colorlog
import pkg_resources
import sqlalchemy as sa
from colorlog.escape_codes import escape_codes
from pandas._testing import makeTimeDataFrame
Expand All @@ -57,7 +56,6 @@

logger = logging.getLogger(__name__)

pkg_resources.require("sqlalchemy>=2.0")

SQLALCHEMY_LOGGING = True

Expand Down