From fd7228c07f817427cedf2f47a4c024523d3c683d Mon Sep 17 00:00:00 2001 From: Nicola Coretti Date: Mon, 22 Apr 2024 14:49:56 +0200 Subject: [PATCH] Update example workflow to use itde --- .github/workflows/examples.yml | 38 +++++++++------------------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 42d10d4..b6f6445 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -10,43 +10,25 @@ on: workflow_dispatch: jobs: + examples: + runs-on: ubuntu-20.04 + timeout-minutes: 30 strategy: fail-fast: false matrix: - include: - - python-version: "3.11" - exasol-tag: latest-7.1 - exasol-port: 8563 - - name: "Build with Python ${{ matrix.python-version }} and Exasol ${{ matrix.exasol-tag }}" - - runs-on: ubuntu-20.04 - timeout-minutes: 15 - - services: - exasol: - image: exasol/docker-db:${{ matrix.exasol-tag }} - ports: - - 8563:${{ matrix.exasol-port }} - options: --privileged + python-version: ["3.11"] steps: - - name: "Checkout repo (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})" + - name: "Checkout repo" uses: actions/checkout@v2 - - name: "Setup Python (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})" - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: "Install dependencies (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})" - run: pip install -e .[pandas,ujson,rapidjson,orjson,examples] - - - name: "Wait for Exasol container (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})" - run: python examples/_wait_container.py + - name: Setup Python & Poetry Environment + uses: exasol/python-toolbox/.github/actions/python-environment@0.7.0 + with: + python-version: ${{ matrix.python-version }} - - name: "Run examples (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})" + - name: "Run examples (Python ${{ matrix.python-version }} Exasol 7.1.17)" run: | python examples/a00_prepare.py python examples/a01_basic.py