Skip to content

Commit

Permalink
add CI with matrix build check
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-schick committed Nov 21, 2023
1 parent 593e27a commit c0b6943
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build & Test

on: [push, fork]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Chechout code
uses: actions/checkout@v4.1.1
- name: Setup python
uses: actions/setup-python@v4.7.1
with:
python-version: ${{ matrix.python-version }}
- name: Install and test application
env:
pythonversion: ${{ matrix.python-version }}
run: |
python -c "import sys; print(sys.version)"
pip install .[test]
echo Finished successful build with Python $pythonversion
# - name: Test with pytest
# run: |
# pytest -v tests -m "not postgres_db and not mssql_db"
# pytest -v tests -m postgres_db
# pytest -v tests -m mssql_db

0 comments on commit c0b6943

Please sign in to comment.