From c0b694347f2d2444bb20f3c2a96148f3154b46c4 Mon Sep 17 00:00:00 2001 From: Leo Schick Date: Tue, 21 Nov 2023 14:51:16 +0100 Subject: [PATCH] add CI with matrix build check --- .github/workflows/build.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..55e8e88 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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