Skip to content

Bump vcrpy from 7.0.0 to 8.2.1 #138

Bump vcrpy from 7.0.0 to 8.2.1

Bump vcrpy from 7.0.0 to 8.2.1 #138

name: SQL CLI Test and Build
on:
workflow_dispatch:
pull_request:
push:
branches-ignore:
- 'dependabot/**'
paths:
- '.'
- '.github/workflows/sql-cli-test-and-build-workflow.yml'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
strategy:
matrix:
python-version: [3.12]
# Note: OpenSearch version is determined by the SQL repository clone
steps:
- name: Checkout SQL CLI
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Java 21
uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3
with:
java-version: '21'
distribution: 'temurin'
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install setuptools wheel
- name: Run Gradle Build and Tests
run: ./gradlew build
- name: Build Artifact
run: python setup.py sdist bdist_wheel
- name: Create Artifact Path
run: |
mkdir -p opensearchsql-builds
cp -r ./dist/*.tar.gz ./dist/*.whl opensearchsql-builds/
- name: Upload Artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: opensearchsql
path: opensearchsql-builds
- name: Clean up test cluster
if: always()
run: ./gradlew stopTestCluster