Skip to content

Commit

Permalink
add sqlalchemy version control in CI GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JAlvarezJarreta committed Sep 12, 2024
1 parent dde08fa commit fe81fd3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/actions/python_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ jobs:
uses: ./.github/workflows/python_ci.yml
with:
python-version: "3.10"
sqlalchemy-version: "2.*"
5 changes: 5 additions & 0 deletions .github/workflows/ci_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ on:
description: Python version
required: true
type: string
sqlalchemy-version:
description: SQLAlchemy version
required: true
type: string

jobs:
python_ci:
name: Python CI
uses: ./.github/workflows/python_ci.yml
with:
python-version: ${{ inputs.python-version }}
sqlalchemy-version: ${{ inputs.sqlalchemy-version }}
5 changes: 5 additions & 0 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fe81fd3

Please sign in to comment.