Skip to content

Commit

Permalink
Use matrix test to test different liquibase versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsimsek committed Nov 15, 2024
1 parent 85894b6 commit 2641c7a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ jobs:
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
liquibase-version: [ "4.9.0", "4.10.0", "4.11.0", "4.21.1", "4.23.2", "4.24.0" ]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
liquibase-version: ${{ matrix.liquibase-version }}
- name: Build & Install
env:
TEST_LIQUIBASE_VERSION: ${{ matrix.liquibase-version }}
run: |
python3 --version
python3 -m pip install coverage pylint pytest
Expand All @@ -37,11 +41,10 @@ jobs:
python3 -m coverage report -m ./pyliquibase/*.py setup.py
python3 -m coverage run --source=./tests/ -m unittest discover -s tests/
python3 -m pylint pyliquibase setup.py
- name: Test with Unittest
run: |
python3 -m coverage run --source=./tests/ -m unittest discover -s tests/
python3 setup.py -q install --user
bash tests/test_pyliquibase_version.sh
cd tests
pyliquibase --defaultsFile=resources/liquibase.properties updateSQL
# - name: Test with Unittest
# run: |
# python3 -m coverage run --source=./tests/ -m unittest discover -s tests/
# python3 setup.py -q install --user
# bash tests/test_pyliquibase_version.sh
# cd tests
# pyliquibase --defaultsFile=resources/liquibase.properties updateSQL

0 comments on commit 2641c7a

Please sign in to comment.