diff --git a/.github/actions/python_build/action.yml b/.github/actions/python_build/action.yml index 1b13a70..fa75677 100644 --- a/.github/actions/python_build/action.yml +++ b/.github/actions/python_build/action.yml @@ -20,6 +20,10 @@ inputs: description: "Python version" required: true default: "3.10" + sqlalchemy-version: + description: SQLAlchemy version to run the CI checks on + required: true + default: "2.*" tags: description: "Optional dependencies (via available tags) to install, e.g. [cicd]" required: true @@ -37,5 +41,6 @@ runs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip install sqlalchemy==${{ inputs.sqlalchemy-version }} pip install -e .${{ inputs.tags }} shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8621569..9f79aa9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,3 +39,4 @@ jobs: uses: ./.github/workflows/python_ci.yml with: python-version: "3.10" + sqlalchemy-version: "2.*" diff --git a/.github/workflows/ci_dev.yml b/.github/workflows/ci_dev.yml index 4298a97..243411d 100644 --- a/.github/workflows/ci_dev.yml +++ b/.github/workflows/ci_dev.yml @@ -23,6 +23,10 @@ on: description: Python version required: true type: string + sqlalchemy-version: + description: SQLAlchemy version + required: true + type: string jobs: python_ci: @@ -30,3 +34,4 @@ jobs: uses: ./.github/workflows/python_ci.yml with: python-version: ${{ inputs.python-version }} + sqlalchemy-version: ${{ inputs.sqlalchemy-version }} diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index b304fb5..1a4d98c 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -22,6 +22,10 @@ on: description: Python version to run the CI checks on required: true type: string + sqlalchemy-version: + description: SQLAlchemy version to run the CI checks on + required: true + type: string defaults: run: @@ -88,6 +92,7 @@ jobs: - uses: ./.github/actions/python_build with: python-version: ${{ inputs.python-version }} + sqlalchemy-version: ${{ inputs.sqlalchemy-version }} tags: "[cicd]" - name: Run pytest with coverage