From aee4d9e7cfe71b77628a71745a01a3164c79d0e6 Mon Sep 17 00:00:00 2001 From: "liu.mingyi" <27064129+eeliu@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:48:45 +0800 Subject: [PATCH] feat(py): flask plugins #538 (#539) - remove cmake - rename pinpintPy - add testcase for plugins - support macos - add gz for build faster close #538 --- .github/workflows/build-wheels.yml | 2 ++ .github/workflows/main.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index d79ad4f06..e6abd4bcb 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -16,6 +16,7 @@ on: jobs: build_wheels_pypitest: + if: ${{ github.event.inputs.release-testpypi }} == "true" name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} if: ${{ inputs.release-testpypi }} @@ -84,6 +85,7 @@ jobs: repository_url: https://test.pypi.org/legacy/ build_wheels: + if: ${{ github.event.inputs.release }} == "true" name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} if: ${{ inputs.release }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e14d8035b..242d15748 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,6 +115,8 @@ jobs: # ref https://github.com/pypa/setuptools/issues/3198 pip install -e . python -m unittest discover -s src/PY/test + - if: matrix.python-version == '3.8' + run : | pip install -r plugins/PY/requirements.txt python -m unittest discover -s plugins/PY/pinpointPy Collector-agent: @@ -137,5 +139,7 @@ jobs: uses: arduino/setup-protoc@v2.1.0 - run: | + export GO_PATH=~/go + export PATH=$PATH:/$GO_PATH/bin go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest cd collector-agent && make && go test ./... -v \ No newline at end of file