From 0868105fc94f91e58825ef2f4b2ce71d4891d0fe 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 | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 42d10d4..021c111 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -16,35 +16,20 @@ jobs: 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 }}" + name: "Build with Python ${{ matrix.python-version }} and Exasol 7.1.17" runs-on: ubuntu-20.04 - timeout-minutes: 15 - - services: - exasol: - image: exasol/docker-db:${{ matrix.exasol-tag }} - ports: - - 8563:${{ matrix.exasol-port }} - options: --privileged + timeout-minutes: 30 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 }})" run: |