You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by aa...@apache.org on 2023/05/11 03:53:19 UTC

[rocketmq-clients] branch master updated: Add python build yml (#506)

This is an automated email from the ASF dual-hosted git repository.

aaronai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git


The following commit(s) were added to refs/heads/master by this push:
     new 31e96426 Add python build yml (#506)
31e96426 is described below

commit 31e9642618d1e530eaf546fa9dd02d5377e5920a
Author: Aaron Ai <ya...@gmail.com>
AuthorDate: Thu May 11 11:53:13 2023 +0800

    Add python build yml (#506)
---
 .github/workflows/python_build.yml | 47 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/.github/workflows/python_build.yml b/.github/workflows/python_build.yml
new file mode 100644
index 00000000..7d3436af
--- /dev/null
+++ b/.github/workflows/python_build.yml
@@ -0,0 +1,47 @@
+name: Python Build
+on:
+  workflow_call:
+jobs:
+  flake8:
+    name: flake8
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v3
+      - name: Set up Python
+        uses: actions/setup-python@v4
+        with:
+          python-version: 3.7
+      - run: python -m pip install flake8
+      - name: flake8
+        # Pinned to v2.0.0.
+        uses: liskin/gh-problem-matcher-wrap@d8afa2cfb66dd3f982b1950429e652bc14d0d7d2
+        with:
+          linters: flake8
+          run: flake8  --exclude python/protocol python
+  isort:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v3
+      - name: Set up Python
+        uses: actions/setup-python@v4
+        with:
+          python-version: 3.7
+      - run: python -m pip install isort
+      - name: isort
+        # Pinned to v2.0.0.
+        uses: liskin/gh-problem-matcher-wrap@d8afa2cfb66dd3f982b1950429e652bc14d0d7d2
+        with:
+          linters: isort
+          run: isort --check --diff --skip python/protocol python
+  # black:
+  #   runs-on: ubuntu-latest
+  #   steps:
+  #     - name: Checkout
+  #       uses: actions/checkout@v3
+  #     - name: black
+  #       uses: psf/black@stable
+  #       with:
+  #         src: "./python"
+  #         options: --exclude "./python/protocol/"