diff --git a/.github/workflows/build-graphscope-wheels-linux.yml b/.github/workflows/build-graphscope-wheels-linux.yml index 04d9bcfcd1a6..3105a0fe0e82 100644 --- a/.github/workflows/build-graphscope-wheels-linux.yml +++ b/.github/workflows/build-graphscope-wheels-linux.yml @@ -1,42 +1,22 @@ name: Build GraphScope Wheels on Linux -#on: - #workflow_dispatch: - #schedule: - #The notifications for scheduled workflows are sent to the user who - #last modified the cron syntax in the workflow file. - #Trigger the workflow at 03:00(CST) every day. - #- cron: '00 19 * * *' - #push: - #tags: - #- "v*" - on: - # Trigger the workflow on push or pull request, - # but only for the main branch + workflow_dispatch: + schedule: + # The notifications for scheduled workflows are sent to the user who + # last modified the cron syntax in the workflow file. + # Trigger the workflow at 03:00(CST) every day. + - cron: '00 19 * * *' push: - branches: - - main - paths-ignore: - - 'CONTRIBUTORS' - - 'LICENSE' - - 'NOTICE.txt' - - '**.md' - - '**.rst' - - 'docs/**' - - 'demo/**' - - 'scripts/**' - - 'tutorials/**' - pull_request: - branches: - - main + tags: + - "v*" env: REGISTRY: registry.cn-hongkong.aliyuncs.com jobs: build-wheels: - # if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope') + if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope') runs-on: ubuntu-20.04 steps: @@ -101,7 +81,6 @@ jobs: packages_dir: upload_pypi/ - name: Publish distribution to PyPI - if: false uses: pypa/gh-action-pypi-publish@v1.4.2 with: user: __token__ @@ -109,7 +88,7 @@ jobs: packages_dir: upload_pypi/ build-image: - # if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope') + if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope') runs-on: ubuntu-20.04 needs: [build-wheels] @@ -191,7 +170,7 @@ jobs: sudo docker push ${{ env.REGISTRY }}/dataset:${tag} ubuntu-python-test: - # if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }} + if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }} runs-on: ubuntu-20.04 needs: [build-wheels] strategy: @@ -241,7 +220,7 @@ jobs: python3 -m pytest -s -v $(dirname $(python3 -c "import graphscope; print(graphscope.__file__)"))/tests/minitest centos-test: - # if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }} + if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }} runs-on: ubuntu-20.04 needs: [build-wheels] container: diff --git a/.github/workflows/build-graphscope-wheels-macos.yml b/.github/workflows/build-graphscope-wheels-macos.yml index b55a8c067312..72ab92c27277 100644 --- a/.github/workflows/build-graphscope-wheels-macos.yml +++ b/.github/workflows/build-graphscope-wheels-macos.yml @@ -1,39 +1,19 @@ name: Build GraphScope Wheels on MacOS -#on: - #workflow_dispatch: - #schedule: - ## The notifications for scheduled workflows are sent to the user who - ## last modified the cron syntax in the workflow file. - ## Trigger the workflow at 03:00(CST) every day. - #- cron: '00 19 * * *' - #push: - #tags: - #- "v*" - on: - # Trigger the workflow on push or pull request, - # but only for the main branch + workflow_dispatch: + schedule: + # The notifications for scheduled workflows are sent to the user who + # last modified the cron syntax in the workflow file. + # Trigger the workflow at 03:00(CST) every day. + - cron: '00 19 * * *' push: - branches: - - main - paths-ignore: - - 'CONTRIBUTORS' - - 'LICENSE' - - 'NOTICE.txt' - - '**.md' - - '**.rst' - - 'docs/**' - - 'demo/**' - - 'scripts/**' - - 'tutorials/**' - pull_request: - branches: - - main + tags: + - "v*" jobs: build-wheels: - # if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope') + if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope') runs-on: macos-10.15 steps: - uses: actions/checkout@v3 @@ -80,7 +60,7 @@ jobs: retention-days: 5 build-client-wheels: - # if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope') + if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope') runs-on: macos-10.15 strategy: matrix: @@ -179,7 +159,7 @@ jobs: packages_dir: upload_pypi/ python-test: - # if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }} + if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }} runs-on: macos-10.15 needs: [build-wheels, build-client-wheels] strategy: