You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2022/11/17 22:00:32 UTC
[incubator-streampipes] 02/03: [STREAMPIPES-627] add CI job for unit tests for supported python versions
This is an automated email from the ASF dual-hosted git repository.
bossenti pushed a commit to branch feature/STREAMPIPES-627
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit 2e7be69753a5d7aed224d221814d183be35d7be7
Author: bossenti <bo...@posteo.de>
AuthorDate: Sun Nov 13 20:13:37 2022 +0100
[STREAMPIPES-627] add CI job for unit tests for supported python versions
---
.github/workflows/pr-validation.yml | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml
index 71c21322f..325d47dba 100644
--- a/.github/workflows/pr-validation.yml
+++ b/.github/workflows/pr-validation.yml
@@ -110,3 +110,40 @@ jobs:
pre-commit run --files tests/*
make mypy
make lint
+
+
+ python-unit-tests:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ python: [3.8, 3.9, "3.10"]
+ os: [ubuntu-latest, macos-latest]
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up Python v${{ matrix.python }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python }}
+
+ - name: Cache Python dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~~.cache/pip
+ key: ${{ runner.os }}-${{ matrix.python }}-pip-${{ hashFiles('**/setup.py') }}
+ restore-keys: |
+ ${{ runner.os }}-${{ matrix.python }}-pip-
+
+ - name: Install Python dependencies
+ run: |
+ cd ./streampipes-client-python
+ python -m pip install --upgrade pip
+ pip install wheel
+ pip install -e ".[dev]"
+
+ - name: Run unit-tests
+ run: |
+ cd ./streampipes-client-python
+ make unit-tests
\ No newline at end of file