Skip to content

Commit

Permalink
Upgrade GitHub actions versions (#2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
siyuan0322 committed Oct 25, 2022
1 parent 695cb9c commit 321d938
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 53 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-graphscope-wheels-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
mv ${GITHUB_WORKSPACE}/coordinator/dist/*.whl ${GITHUB_WORKSPACE}/upload_pypi/
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheel-${{ github.sha }}
path: |
Expand Down Expand Up @@ -96,11 +96,11 @@ jobs:
needs: [build-wheels]

steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
path: artifacts

Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
- name: Extract Tag Name
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope' }}
id: tag
run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/v}
run: echo "TAG=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

- name: Release Image
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope' }}
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
python-version: [3.7, 3.8, 3.9]

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
path: artifacts

Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
--shm-size 4096m

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
path: artifacts

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-graphscope-wheels-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
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@v2
- uses: actions/checkout@v3
with:
submodules: true

Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
tar -zcf graphscope.tar.gz coordinator/dist/wheelhouse/*.whl
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheel-macos-${{ github.sha }}
path: graphscope.tar.gz
Expand All @@ -67,7 +67,7 @@ jobs:
python-version: ['3.7', '3.8', '3.9']

steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3
with:
submodules: true

Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
tar -zcf client.tar.gz python/dist/
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheel-macos-${{ github.sha }}-${{ matrix.python-version }}
path: client.tar.gz
Expand All @@ -120,7 +120,7 @@ jobs:
python-version: ['3.7', '3.8', '3.9']

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
path: artifacts

Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
python-version: ['3.7', '3.8', '3.9']

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
path: artifacts

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-dummy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
gie-function-test: ${{ steps.filter.outputs.gie-function-test }}
steps:
# For push it's necessary to checkout the code
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
id: filter
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
gie-function-test: ${{ steps.filter.outputs.gie-function-test }}
steps:
# For push it's necessary to checkout the code
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
id: filter
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
python3 -m flake8 .
- name: Setup Java11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
needs: [changes]
if: ${{ github.repository == 'alibaba/GraphScope' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

Expand Down Expand Up @@ -255,7 +255,7 @@ jobs:
tar -zcf graphscope.tar.gz coordinator/dist/
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheel-${{ github.sha }}
path: |
Expand All @@ -268,9 +268,9 @@ jobs:
if: ${{ github.repository == 'alibaba/GraphScope' }}
needs: [build-wheels]
steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
path: artifacts

Expand Down Expand Up @@ -311,7 +311,7 @@ jobs:

- name: Upload GIE log
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: gie-log
path: ~/.local/log/graphscope
Expand All @@ -328,10 +328,10 @@ jobs:
deployment: ["standalone", "distributed"]

steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3
if: ${{ needs.changes.outputs.gae-python == 'true' }}

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
if: ${{ needs.changes.outputs.gae-python == 'true' }}
with:
path: artifacts
Expand Down Expand Up @@ -377,7 +377,7 @@ jobs:
- name: Upload Coverage
if: ${{ needs.changes.outputs.gae-python == 'true' || github.ref == 'refs/heads/main' }}
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false
Expand All @@ -393,7 +393,7 @@ jobs:
matrix:
deployment: ["standalone", "distributed"]
steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3
if: ${{ needs.changes.outputs.networkx == 'true' }}

- uses: dorny/paths-filter@v2
Expand All @@ -414,7 +414,7 @@ jobs:
- 'python/graphscope/nx/convert_matrix.py'
- 'python/graphscope/nx/tests/convert/**'
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
if: ${{ needs.changes.outputs.networkx == 'true' }}
with:
path: artifacts
Expand Down Expand Up @@ -479,7 +479,7 @@ jobs:
matrix:
deployment: ["standalone", "distributed"]
steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3
if: ${{ needs.changes.outputs.networkx == 'true' }}

- uses: dorny/paths-filter@v2
Expand All @@ -499,7 +499,7 @@ jobs:
io:
- 'python/graphscope/nx/readwrite/**'
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
if: ${{ needs.changes.outputs.networkx == 'true' }}
with:
path: artifacts
Expand Down Expand Up @@ -564,7 +564,7 @@ jobs:
needs: [build-wheels, changes]
if: ${{ needs.changes.outputs.gie-function-test == 'true' && github.repository == 'alibaba/GraphScope' }}
steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3

- uses: actions/cache@v3
with:
Expand All @@ -580,7 +580,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
path: artifacts

Expand Down Expand Up @@ -626,7 +626,7 @@ jobs:
if: ${{ github.repository == 'alibaba/GraphScope' }}
needs: [build-wheels]
steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3

- uses: actions/cache@v3
with:
Expand All @@ -635,7 +635,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
path: artifacts

Expand Down Expand Up @@ -703,7 +703,7 @@ jobs:
if: false

- name: Upload Coverage
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
file: ./python/coverage.xml
fail_ci_if_error: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0

- name: Setup Java11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gae.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
options:
--shm-size 4096m
steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3

- name: Install latest libgrape-lite and vineyard
if: false
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
--cov-report=term --exitfirst -s -v graphscope/tests/unittest/test_java_app.py
- name: Upload Coverage
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
file: ./python/coverage.xml
fail_ci_if_error: true
4 changes: 2 additions & 2 deletions .github/workflows/gaia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
gaia-test:
runs-on: [self-hosted, manylinux2014]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Upload GIE log
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: gie-log
path: /var/log/graphscope
8 changes: 4 additions & 4 deletions .github/workflows/gss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
runs-on: [self-hosted, manylinux2014]
if: ${{ github.repository == 'alibaba/GraphScope' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
mvn test -P gremlin-test
- name: Upload tools for helm test to Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: groot.tar.gz
path: interactive_engine/assembly/target/groot.tar.gz
Expand All @@ -127,11 +127,11 @@ jobs:
find ./ -name "*.whl" | xargs sudo rm -rf || true
find ./ -name "*_pb2.py" | xargs sudo rm -rf || true
find ./ -name "*_pb2_grpc.py" | xargs sudo rm -rf || true
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: groot.tar.gz
path: artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/networkx-forward-algo-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
--shm-size 4096m

steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3

- name: Build GAE and coordinator
run: |
Expand All @@ -40,7 +40,7 @@ jobs:
--cov-report=term -s -v -m "not slow" graphscope/nx/algorithms/tests/forward
- name: Upload Coverage
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
file: ./python/coverage.xml
fail_ci_if_error: true
Loading

0 comments on commit 321d938

Please sign in to comment.