python-environment

This action prepares everything related to Python for the project to run or to be tested. It involves installing the Python interpreter and Poetry. It also includes creating and activating a Poetry environment, as well as installing the project dependencies, and the project itself, into the Poetry environment.

Parameters

Parameter

Description

Required

Default

python-version

Python version to use

True

3.8

poetry-version

Poetry version to use

True

1.2.2

Example Usage

name: Checks

...

jobs:

  test-job:
    name: Tests
    runs-on: ubuntu-latest

    steps:
      - name: SCM Checkout
        uses: actions/checkout@v4

      - name: Setup Python & Poetry Environment
        uses: exasol/python-toolbox/.github/actions/python-environment@0.9.0
        with:
          python-version: 3.12
          poetry-version: 1.2.2

        ...