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:31 UTC
[incubator-streampipes] 01/03: [STREAMPIPES-627] add CI job for code style checks
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 fcf63e57847cd6322bf974322a6d1d8ff251eda6
Author: bossenti <bo...@posteo.de>
AuthorDate: Sun Nov 13 19:58:32 2022 +0100
[STREAMPIPES-627] add CI job for code style checks
---
.github/workflows/pr-validation.yml | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml
index 484fb2dad..71c21322f 100644
--- a/.github/workflows/pr-validation.yml
+++ b/.github/workflows/pr-validation.yml
@@ -77,3 +77,36 @@ jobs:
wait-on-timeout: 120
spec: cypress/tests/**/*.smoke.spec.ts
working-directory: ui
+
+ python-quality-checks:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.8
+
+ - name: Cache Python dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip${{ hashFiles('**/setup.py') }}
+ restore-keys: |
+ ${{ runner.os }}-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 style & code checks
+ run: |
+ cd ./streampipes-client-python
+ pre-commit run --files streampipes_client/*
+ pre-commit run --files tests/*
+ make mypy
+ make lint