Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lidongze0629 committed Apr 24, 2023
1 parent 0108d77 commit bb9ea69
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 41 deletions.
33 changes: 13 additions & 20 deletions .github/workflows/build-graphscope-wheels-linux.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
name: Build GraphScope Wheels on Linux

# on: [push, pull_request]
#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
pull_request:
branches:
- main
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*"

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:
Expand Down Expand Up @@ -96,7 +89,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]

Expand Down Expand Up @@ -163,7 +156,7 @@ jobs:
sudo docker push ${{ env.REGISTRY }}/graphscope/jupyter:${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:
Expand Down Expand Up @@ -219,7 +212,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:
Expand Down
35 changes: 14 additions & 21 deletions .github/workflows/build-graphscope-wheels-macos.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
name: Build GraphScope Wheels on MacOS

# on: [push, pull_request]
#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
pull_request:
branches:
- main
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*"

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
Expand Down Expand Up @@ -104,7 +97,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:
Expand Down Expand Up @@ -190,7 +183,7 @@ jobs:

# Action gh-action-pypi-publish not support non-linux os.
publish-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
needs: [build-wheels, build-client-wheels]
strategy:
Expand Down Expand Up @@ -237,7 +230,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-latest
needs: [build-wheels, build-client-wheels]
strategy:
Expand Down Expand Up @@ -287,5 +280,5 @@ jobs:
python3 -m pytest -s -v $(dirname $(python3 -c "import graphscope; print(graphscope.__file__)"))/tests/minitest
- name: Setup tmate session
if: always()
if: false
uses: mxschmitt/action-tmate@v2

0 comments on commit bb9ea69

Please sign in to comment.