From ffb3cdd55f7471f2b06b2a59077f3cfe4c361013 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 00:26:26 +0000 Subject: [PATCH 01/22] update aws --- .github/workflows/build_test.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index babff8795..b16818f3a 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -4,6 +4,9 @@ on: workflows: ["Unit Test"] types: - completed +permissions: + id-token: write + jobs: unittest-check: runs-on: ubuntu-latest @@ -48,8 +51,7 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} - aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} + role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole aws-region: us-east-1 - name: Install dependencies run: | @@ -118,8 +120,7 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} - aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} + role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole aws-region: us-east-1 - name: Install dependencies run: | @@ -188,8 +189,7 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} - aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} + role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole aws-region: us-east-1 - name: Install dependencies run: | @@ -262,8 +262,7 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} - aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} + role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole aws-region: us-east-1 - name: Install dependencies run: | From 9ffa3538d61da6eea6fa4c87e588c5b5a621a717 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 00:53:48 +0000 Subject: [PATCH 02/22] fix --- .github/workflows/build_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index b16818f3a..88b7ef46b 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -6,6 +6,7 @@ on: - completed permissions: id-token: write + contents: read jobs: unittest-check: From 115a8736f6d89b290273e6a4fb31ead2e7908555 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 01:28:30 +0000 Subject: [PATCH 03/22] fix --- .github/workflows/build_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 88b7ef46b..0fc677d5e 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -7,6 +7,7 @@ on: permissions: id-token: write contents: read + statuses: read jobs: unittest-check: From ce2ab691580db129e78538b65cd68219be7804b5 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 01:45:22 +0000 Subject: [PATCH 04/22] test --- .github/workflows/build_test.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 0fc677d5e..5acc8d496 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -4,11 +4,6 @@ on: workflows: ["Unit Test"] types: - completed -permissions: - id-token: write - contents: read - statuses: read - jobs: unittest-check: runs-on: ubuntu-latest @@ -53,7 +48,8 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} + aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} aws-region: us-east-1 - name: Install dependencies run: | @@ -122,7 +118,8 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} + aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} aws-region: us-east-1 - name: Install dependencies run: | @@ -191,7 +188,8 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} + aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} aws-region: us-east-1 - name: Install dependencies run: | @@ -264,7 +262,8 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} + aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} aws-region: us-east-1 - name: Install dependencies run: | @@ -312,4 +311,4 @@ jobs: issue-number: ${{ env.PR }} body: | Job PR-${{ env.PR }}-${{ env.SHORT_SHA }} is done. - Docs are uploaded to http://gluon-vision-staging.s3-website-us-west-2.amazonaws.com/PR-${{ env.PR }}/${{ env.SHORT_SHA }}/index.html + Docs are uploaded to http://gluon-vision-staging.s3-website-us-west-2.amazonaws.com/PR-${{ env.PR }}/${{ env.SHORT_SHA }}/index.html \ No newline at end of file From 839f9b8558226fc8fb67a6be8085188039849c37 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 02:01:08 +0000 Subject: [PATCH 05/22] fix --- .github/workflows/build_test.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 5acc8d496..b4dc412eb 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -4,6 +4,11 @@ on: workflows: ["Unit Test"] types: - completed +permissions: + id-token: write + contents: read + statuses: read + jobs: unittest-check: runs-on: ubuntu-latest @@ -48,8 +53,8 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} - aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} + role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + role-duration-seconds: 7200 aws-region: us-east-1 - name: Install dependencies run: | @@ -118,8 +123,8 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} - aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} + role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + role-duration-seconds: 7200 aws-region: us-east-1 - name: Install dependencies run: | @@ -188,8 +193,8 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} - aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} + role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + role-duration-seconds: 7200 aws-region: us-east-1 - name: Install dependencies run: | @@ -262,8 +267,8 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }} - aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }} + role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + role-duration-seconds: 7200 aws-region: us-east-1 - name: Install dependencies run: | @@ -311,4 +316,4 @@ jobs: issue-number: ${{ env.PR }} body: | Job PR-${{ env.PR }}-${{ env.SHORT_SHA }} is done. - Docs are uploaded to http://gluon-vision-staging.s3-website-us-west-2.amazonaws.com/PR-${{ env.PR }}/${{ env.SHORT_SHA }}/index.html \ No newline at end of file + Docs are uploaded to http://gluon-vision-staging.s3-website-us-west-2.amazonaws.com/PR-${{ env.PR }}/${{ env.SHORT_SHA }}/index.html From b85057fc2c96d1253b8f94433b9cc26f4724598c Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 02:02:18 +0000 Subject: [PATCH 06/22] for quicker test --- .github/workflows/unittest.yml | 128 ++++++++++++++++----------------- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 7d7f3b307..7cd753d7a 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -21,67 +21,67 @@ jobs: echo "$GITHUB_CONTEXT" - name: Checkout repository uses: actions/checkout@v2 - - name: Setup Miniconda - uses: conda-incubator/setup-miniconda@v2.0.0 - with: - auto-update-conda: true - python-version: 3.7 - - name: sanity-check - shell: bash -l {0} - run: | - conda env create -n gluon_cv_lint -f ./tests/pylint.yml - conda env update -n gluon-cv-lint -f ./tests/pylint.yml --prune - conda activate gluon-cv-lint - conda list - make clean - make pylint - - name: unit-test - shell: bash -l {0} - run: | - conda env create -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml - conda env update -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml --prune - conda activate gluon_cv_py3_test - conda list - export CUDA_VISIBLE_DEVICES=0 - export KMP_DUPLICATE_LIB_OK=TRUE - make clean - pip install --upgrade --force-reinstall --no-deps . - env - export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64 - export MPLBACKEND=Agg - export MXNET_CUDNN_AUTOTUNE_DEFAULT=0 - export TINY_COCO=~/.mxnet/datasets/tiny_coco - export TINY_MOTORBIKE=~/.mxnet/datasets/tiny_motorbike - mkdir -p $TINY_COCO/annotations - curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/sub_val.zip --output sub_val.zip - unzip -q sub_val.zip -d $TINY_COCO - mv $TINY_COCO/sub_val $TINY_COCO/val2017 - curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/instances_val2017_tiny.json --output instances_val2017_tiny.json - mv instances_val2017_tiny.json $TINY_COCO/annotations - curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/tiny_motorbike.zip --output tiny_motorbike.zip - unzip -q tiny_motorbike.zip -d $TINY_MOTORBIKE - nosetests --with-timer --timer-ok 5 --timer-warning 20 -x --with-coverage --cover-package gluoncv -v tests/unittests - - name: Save github context info(For push) - if: ${{ github.event_name == 'push' }} - run: | - echo "${{ github.ref }}" - echo "${{ github.repository }}" - mkdir git_context - echo "${{ github.ref }}" > git_context/ref.atf - echo "${{ github.repository }}" > git_context/repo.atf - - name: Save github context info(For pull request) - if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }} - run: | - echo "${{ github.event.pull_request.head.ref }}" - echo "${{ github.event.pull_request.head.repo.full_name }}" - echo "${{ github.event.number }}" - echo "${{ github.event.pull_request.head.sha }}" - mkdir git_context - echo "${{ github.event.pull_request.head.ref }}" > git_context/ref.atf - echo "${{ github.event.pull_request.head.repo.full_name }}" > git_context/repo.atf - echo "${{ github.event.number }}" > git_context/pr.atf - echo "${{ github.event.pull_request.head.sha }}" > git_context/sha.atf - - name: Upload artifact - uses: actions/upload-artifact@v2 - with: - path: git_context + # - name: Setup Miniconda + # uses: conda-incubator/setup-miniconda@v2.0.0 + # with: + # auto-update-conda: true + # python-version: 3.7 + # - name: sanity-check + # shell: bash -l {0} + # run: | + # conda env create -n gluon_cv_lint -f ./tests/pylint.yml + # conda env update -n gluon-cv-lint -f ./tests/pylint.yml --prune + # conda activate gluon-cv-lint + # conda list + # make clean + # make pylint + # - name: unit-test + # shell: bash -l {0} + # run: | + # conda env create -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml + # conda env update -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml --prune + # conda activate gluon_cv_py3_test + # conda list + # export CUDA_VISIBLE_DEVICES=0 + # export KMP_DUPLICATE_LIB_OK=TRUE + # make clean + # pip install --upgrade --force-reinstall --no-deps . + # env + # export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64 + # export MPLBACKEND=Agg + # export MXNET_CUDNN_AUTOTUNE_DEFAULT=0 + # export TINY_COCO=~/.mxnet/datasets/tiny_coco + # export TINY_MOTORBIKE=~/.mxnet/datasets/tiny_motorbike + # mkdir -p $TINY_COCO/annotations + # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/sub_val.zip --output sub_val.zip + # unzip -q sub_val.zip -d $TINY_COCO + # mv $TINY_COCO/sub_val $TINY_COCO/val2017 + # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/instances_val2017_tiny.json --output instances_val2017_tiny.json + # mv instances_val2017_tiny.json $TINY_COCO/annotations + # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/tiny_motorbike.zip --output tiny_motorbike.zip + # unzip -q tiny_motorbike.zip -d $TINY_MOTORBIKE + # nosetests --with-timer --timer-ok 5 --timer-warning 20 -x --with-coverage --cover-package gluoncv -v tests/unittests + # - name: Save github context info(For push) + # if: ${{ github.event_name == 'push' }} + # run: | + # echo "${{ github.ref }}" + # echo "${{ github.repository }}" + # mkdir git_context + # echo "${{ github.ref }}" > git_context/ref.atf + # echo "${{ github.repository }}" > git_context/repo.atf + # - name: Save github context info(For pull request) + # if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }} + # run: | + # echo "${{ github.event.pull_request.head.ref }}" + # echo "${{ github.event.pull_request.head.repo.full_name }}" + # echo "${{ github.event.number }}" + # echo "${{ github.event.pull_request.head.sha }}" + # mkdir git_context + # echo "${{ github.event.pull_request.head.ref }}" > git_context/ref.atf + # echo "${{ github.event.pull_request.head.repo.full_name }}" > git_context/repo.atf + # echo "${{ github.event.number }}" > git_context/pr.atf + # echo "${{ github.event.pull_request.head.sha }}" > git_context/sha.atf + # - name: Upload artifact + # uses: actions/upload-artifact@v2 + # with: + # path: git_context From c423123b669845bc247a24024da02de37128688e Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 02:07:15 +0000 Subject: [PATCH 07/22] test --- .github/workflows/build_test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index b4dc412eb..7e1b131d1 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -4,13 +4,13 @@ on: workflows: ["Unit Test"] types: - completed -permissions: - id-token: write - contents: read - statuses: read jobs: unittest-check: + permissions: + id-token: write + contents: read + statuses: read runs-on: ubuntu-latest steps: - uses: haya14busa/action-workflow_run-status@v1 From 412a4f4537910181bf2900d5b98f989a1b0715e0 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 02:09:23 +0000 Subject: [PATCH 08/22] test --- .github/workflows/build_test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 7e1b131d1..fe0f001bd 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -11,6 +11,8 @@ jobs: id-token: write contents: read statuses: read + checks: read + pull-requests: read runs-on: ubuntu-latest steps: - uses: haya14busa/action-workflow_run-status@v1 From 08363f77beb85a4c1171d0fa07c8dff5ee94c283 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 02:11:39 +0000 Subject: [PATCH 09/22] test --- .github/workflows/build_test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index fe0f001bd..2a7a7b7f3 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -7,12 +7,12 @@ on: jobs: unittest-check: - permissions: - id-token: write - contents: read - statuses: read - checks: read - pull-requests: read + # permissions: + # id-token: write + # contents: read + # statuses: read + # checks: read + # pull-requests: read runs-on: ubuntu-latest steps: - uses: haya14busa/action-workflow_run-status@v1 From 2cc7c83d6aed83048d95fa8a6515120390dfbc61 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 02:13:22 +0000 Subject: [PATCH 10/22] fix --- .github/workflows/build_test.yml | 6 -- .github/workflows/unittest.yml | 128 +++++++++++++++---------------- 2 files changed, 64 insertions(+), 70 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 2a7a7b7f3..a0e5964a4 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -7,12 +7,6 @@ on: jobs: unittest-check: - # permissions: - # id-token: write - # contents: read - # statuses: read - # checks: read - # pull-requests: read runs-on: ubuntu-latest steps: - uses: haya14busa/action-workflow_run-status@v1 diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 7cd753d7a..7d7f3b307 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -21,67 +21,67 @@ jobs: echo "$GITHUB_CONTEXT" - name: Checkout repository uses: actions/checkout@v2 - # - name: Setup Miniconda - # uses: conda-incubator/setup-miniconda@v2.0.0 - # with: - # auto-update-conda: true - # python-version: 3.7 - # - name: sanity-check - # shell: bash -l {0} - # run: | - # conda env create -n gluon_cv_lint -f ./tests/pylint.yml - # conda env update -n gluon-cv-lint -f ./tests/pylint.yml --prune - # conda activate gluon-cv-lint - # conda list - # make clean - # make pylint - # - name: unit-test - # shell: bash -l {0} - # run: | - # conda env create -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml - # conda env update -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml --prune - # conda activate gluon_cv_py3_test - # conda list - # export CUDA_VISIBLE_DEVICES=0 - # export KMP_DUPLICATE_LIB_OK=TRUE - # make clean - # pip install --upgrade --force-reinstall --no-deps . - # env - # export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64 - # export MPLBACKEND=Agg - # export MXNET_CUDNN_AUTOTUNE_DEFAULT=0 - # export TINY_COCO=~/.mxnet/datasets/tiny_coco - # export TINY_MOTORBIKE=~/.mxnet/datasets/tiny_motorbike - # mkdir -p $TINY_COCO/annotations - # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/sub_val.zip --output sub_val.zip - # unzip -q sub_val.zip -d $TINY_COCO - # mv $TINY_COCO/sub_val $TINY_COCO/val2017 - # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/instances_val2017_tiny.json --output instances_val2017_tiny.json - # mv instances_val2017_tiny.json $TINY_COCO/annotations - # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/tiny_motorbike.zip --output tiny_motorbike.zip - # unzip -q tiny_motorbike.zip -d $TINY_MOTORBIKE - # nosetests --with-timer --timer-ok 5 --timer-warning 20 -x --with-coverage --cover-package gluoncv -v tests/unittests - # - name: Save github context info(For push) - # if: ${{ github.event_name == 'push' }} - # run: | - # echo "${{ github.ref }}" - # echo "${{ github.repository }}" - # mkdir git_context - # echo "${{ github.ref }}" > git_context/ref.atf - # echo "${{ github.repository }}" > git_context/repo.atf - # - name: Save github context info(For pull request) - # if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }} - # run: | - # echo "${{ github.event.pull_request.head.ref }}" - # echo "${{ github.event.pull_request.head.repo.full_name }}" - # echo "${{ github.event.number }}" - # echo "${{ github.event.pull_request.head.sha }}" - # mkdir git_context - # echo "${{ github.event.pull_request.head.ref }}" > git_context/ref.atf - # echo "${{ github.event.pull_request.head.repo.full_name }}" > git_context/repo.atf - # echo "${{ github.event.number }}" > git_context/pr.atf - # echo "${{ github.event.pull_request.head.sha }}" > git_context/sha.atf - # - name: Upload artifact - # uses: actions/upload-artifact@v2 - # with: - # path: git_context + - name: Setup Miniconda + uses: conda-incubator/setup-miniconda@v2.0.0 + with: + auto-update-conda: true + python-version: 3.7 + - name: sanity-check + shell: bash -l {0} + run: | + conda env create -n gluon_cv_lint -f ./tests/pylint.yml + conda env update -n gluon-cv-lint -f ./tests/pylint.yml --prune + conda activate gluon-cv-lint + conda list + make clean + make pylint + - name: unit-test + shell: bash -l {0} + run: | + conda env create -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml + conda env update -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml --prune + conda activate gluon_cv_py3_test + conda list + export CUDA_VISIBLE_DEVICES=0 + export KMP_DUPLICATE_LIB_OK=TRUE + make clean + pip install --upgrade --force-reinstall --no-deps . + env + export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64 + export MPLBACKEND=Agg + export MXNET_CUDNN_AUTOTUNE_DEFAULT=0 + export TINY_COCO=~/.mxnet/datasets/tiny_coco + export TINY_MOTORBIKE=~/.mxnet/datasets/tiny_motorbike + mkdir -p $TINY_COCO/annotations + curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/sub_val.zip --output sub_val.zip + unzip -q sub_val.zip -d $TINY_COCO + mv $TINY_COCO/sub_val $TINY_COCO/val2017 + curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/instances_val2017_tiny.json --output instances_val2017_tiny.json + mv instances_val2017_tiny.json $TINY_COCO/annotations + curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/tiny_motorbike.zip --output tiny_motorbike.zip + unzip -q tiny_motorbike.zip -d $TINY_MOTORBIKE + nosetests --with-timer --timer-ok 5 --timer-warning 20 -x --with-coverage --cover-package gluoncv -v tests/unittests + - name: Save github context info(For push) + if: ${{ github.event_name == 'push' }} + run: | + echo "${{ github.ref }}" + echo "${{ github.repository }}" + mkdir git_context + echo "${{ github.ref }}" > git_context/ref.atf + echo "${{ github.repository }}" > git_context/repo.atf + - name: Save github context info(For pull request) + if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }} + run: | + echo "${{ github.event.pull_request.head.ref }}" + echo "${{ github.event.pull_request.head.repo.full_name }}" + echo "${{ github.event.number }}" + echo "${{ github.event.pull_request.head.sha }}" + mkdir git_context + echo "${{ github.event.pull_request.head.ref }}" > git_context/ref.atf + echo "${{ github.event.pull_request.head.repo.full_name }}" > git_context/repo.atf + echo "${{ github.event.number }}" > git_context/pr.atf + echo "${{ github.event.pull_request.head.sha }}" > git_context/sha.atf + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + path: git_context From 40026a24686d85bc0bb1a1337be05a2f59e0bad4 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 03:17:58 +0000 Subject: [PATCH 11/22] fix --- .github/workflows/build_test.yml | 12 +++++ .github/workflows/unittest.yml | 80 ++++++++++++++++---------------- 2 files changed, 52 insertions(+), 40 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index a0e5964a4..3dde775dd 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -14,6 +14,9 @@ jobs: if: ${{ github.event.workflow_run.conclusion != 'success' }} run: exit 1 model_zoo_mxnet: + permissions: + id-token: write + contents: read needs: unittest-check runs-on: ubuntu-latest steps: @@ -89,6 +92,9 @@ jobs: --command "chmod +x ./.github/workflows/gpu_test.sh && ./.github/workflows/gpu_test.sh gluoncv tests/model_zoo" \ --wait model_zoo_torch: + permissions: + id-token: write + contents: read needs: unittest-check runs-on: ubuntu-latest steps: @@ -159,6 +165,9 @@ jobs: --command "chmod +x ./.github/workflows/gpu_test.sh && ./.github/workflows/gpu_test.sh gluoncv/torch tests/model_zoo_torch" \ --wait auto: + permissions: + id-token: write + contents: read needs: unittest-check runs-on: ubuntu-latest steps: @@ -229,6 +238,9 @@ jobs: --command "chmod +x ./.github/workflows/gpu_test.sh && ./.github/workflows/gpu_test.sh gluoncv tests/auto" \ --wait build-docs: + permissions: + id-token: write + contents: read needs: [unittest-check, model_zoo_mxnet, model_zoo_torch, auto] runs-on: ubuntu-latest steps: diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 7d7f3b307..3ed503bb6 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -21,46 +21,46 @@ jobs: echo "$GITHUB_CONTEXT" - name: Checkout repository uses: actions/checkout@v2 - - name: Setup Miniconda - uses: conda-incubator/setup-miniconda@v2.0.0 - with: - auto-update-conda: true - python-version: 3.7 - - name: sanity-check - shell: bash -l {0} - run: | - conda env create -n gluon_cv_lint -f ./tests/pylint.yml - conda env update -n gluon-cv-lint -f ./tests/pylint.yml --prune - conda activate gluon-cv-lint - conda list - make clean - make pylint - - name: unit-test - shell: bash -l {0} - run: | - conda env create -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml - conda env update -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml --prune - conda activate gluon_cv_py3_test - conda list - export CUDA_VISIBLE_DEVICES=0 - export KMP_DUPLICATE_LIB_OK=TRUE - make clean - pip install --upgrade --force-reinstall --no-deps . - env - export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64 - export MPLBACKEND=Agg - export MXNET_CUDNN_AUTOTUNE_DEFAULT=0 - export TINY_COCO=~/.mxnet/datasets/tiny_coco - export TINY_MOTORBIKE=~/.mxnet/datasets/tiny_motorbike - mkdir -p $TINY_COCO/annotations - curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/sub_val.zip --output sub_val.zip - unzip -q sub_val.zip -d $TINY_COCO - mv $TINY_COCO/sub_val $TINY_COCO/val2017 - curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/instances_val2017_tiny.json --output instances_val2017_tiny.json - mv instances_val2017_tiny.json $TINY_COCO/annotations - curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/tiny_motorbike.zip --output tiny_motorbike.zip - unzip -q tiny_motorbike.zip -d $TINY_MOTORBIKE - nosetests --with-timer --timer-ok 5 --timer-warning 20 -x --with-coverage --cover-package gluoncv -v tests/unittests + # - name: Setup Miniconda + # uses: conda-incubator/setup-miniconda@v2.0.0 + # with: + # auto-update-conda: true + # python-version: 3.7 + # # - name: sanity-check + # shell: bash -l {0} + # run: | + # conda env create -n gluon_cv_lint -f ./tests/pylint.yml + # conda env update -n gluon-cv-lint -f ./tests/pylint.yml --prune + # conda activate gluon-cv-lint + # conda list + # make clean + # make pylint + # - name: unit-test + # shell: bash -l {0} + # run: | + # conda env create -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml + # conda env update -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml --prune + # conda activate gluon_cv_py3_test + # conda list + # export CUDA_VISIBLE_DEVICES=0 + # export KMP_DUPLICATE_LIB_OK=TRUE + # make clean + # pip install --upgrade --force-reinstall --no-deps . + # env + # export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64 + # export MPLBACKEND=Agg + # export MXNET_CUDNN_AUTOTUNE_DEFAULT=0 + # export TINY_COCO=~/.mxnet/datasets/tiny_coco + # export TINY_MOTORBIKE=~/.mxnet/datasets/tiny_motorbike + # mkdir -p $TINY_COCO/annotations + # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/sub_val.zip --output sub_val.zip + # unzip -q sub_val.zip -d $TINY_COCO + # mv $TINY_COCO/sub_val $TINY_COCO/val2017 + # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/instances_val2017_tiny.json --output instances_val2017_tiny.json + # mv instances_val2017_tiny.json $TINY_COCO/annotations + # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/tiny_motorbike.zip --output tiny_motorbike.zip + # unzip -q tiny_motorbike.zip -d $TINY_MOTORBIKE + # nosetests --with-timer --timer-ok 5 --timer-warning 20 -x --with-coverage --cover-package gluoncv -v tests/unittests - name: Save github context info(For push) if: ${{ github.event_name == 'push' }} run: | From 8e1fbcda260e49dd0eff05a193afb63ae9f84153 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 03:26:04 +0000 Subject: [PATCH 12/22] test --- .github/workflows/build_test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 3dde775dd..7a8bd846d 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -17,6 +17,9 @@ jobs: permissions: id-token: write contents: read + checks: read + metadata: read + statuses: read needs: unittest-check runs-on: ubuntu-latest steps: From 5c727cec51246b983311971a735e4a9ce03b8bcc Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 03:27:56 +0000 Subject: [PATCH 13/22] test --- .github/workflows/build_test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 7a8bd846d..bffb51745 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -17,9 +17,8 @@ jobs: permissions: id-token: write contents: read - checks: read - metadata: read - statuses: read + checks: read/write + statuses: read/write needs: unittest-check runs-on: ubuntu-latest steps: From 22d50a6850d776746ee6c05f5273208b7a3b6d3c Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 03:30:03 +0000 Subject: [PATCH 14/22] test --- .github/workflows/build_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index bffb51745..a5aa65e0f 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -17,8 +17,8 @@ jobs: permissions: id-token: write contents: read - checks: read/write - statuses: read/write + checks: read + statuses: read needs: unittest-check runs-on: ubuntu-latest steps: From 8fcb790450afb24d101266e34578709fed23abe3 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 03:34:22 +0000 Subject: [PATCH 15/22] test --- .github/workflows/build_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index a5aa65e0f..267de69c5 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -16,6 +16,7 @@ jobs: model_zoo_mxnet: permissions: id-token: write + actions: write contents: read checks: read statuses: read From 3c762b2d7fb9dfdd932fd8cbd4009c5d6e32e4ab Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 03:36:19 +0000 Subject: [PATCH 16/22] test --- .github/workflows/build_test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 267de69c5..c7aa31e24 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -17,9 +17,9 @@ jobs: permissions: id-token: write actions: write - contents: read - checks: read - statuses: read + contents: write + checks: write + statuses: write needs: unittest-check runs-on: ubuntu-latest steps: From ebb8689a1a3c5c27687a76f3298f8e7ef403dde1 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 03:40:20 +0000 Subject: [PATCH 17/22] test --- .github/workflows/build_test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index c7aa31e24..10242e82c 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -17,9 +17,14 @@ jobs: permissions: id-token: write actions: write - contents: write checks: write + contents: write + deployments: write + packages: write + pages: write + pull-requests: write statuses: write + needs: unittest-check runs-on: ubuntu-latest steps: From bcd9050f35270b7d55c687957ecd71de84d9f113 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 03:40:39 +0000 Subject: [PATCH 18/22] test --- .github/workflows/build_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 10242e82c..65243cb20 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -23,6 +23,7 @@ jobs: packages: write pages: write pull-requests: write + repository-projects: write statuses: write needs: unittest-check From cc36fad79c83a5ded8632eacd8868fa6d5ded954 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 04:15:38 +0000 Subject: [PATCH 19/22] test --- .github/workflows/build_test.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 65243cb20..9fd9293f2 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -16,16 +16,9 @@ jobs: model_zoo_mxnet: permissions: id-token: write - actions: write + contents: read checks: write - contents: write - deployments: write - packages: write - pages: write - pull-requests: write - repository-projects: write statuses: write - needs: unittest-check runs-on: ubuntu-latest steps: From d058868f75a852a483fd66bebcd8e63b846957a3 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 04:18:52 +0000 Subject: [PATCH 20/22] test --- .github/workflows/build_test.yml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 9fd9293f2..848ebca1e 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -4,7 +4,10 @@ on: workflows: ["Unit Test"] types: - completed - +permissions: + id-token: write + contents: read + statuses: write jobs: unittest-check: runs-on: ubuntu-latest @@ -14,11 +17,6 @@ jobs: if: ${{ github.event.workflow_run.conclusion != 'success' }} run: exit 1 model_zoo_mxnet: - permissions: - id-token: write - contents: read - checks: write - statuses: write needs: unittest-check runs-on: ubuntu-latest steps: @@ -94,9 +92,6 @@ jobs: --command "chmod +x ./.github/workflows/gpu_test.sh && ./.github/workflows/gpu_test.sh gluoncv tests/model_zoo" \ --wait model_zoo_torch: - permissions: - id-token: write - contents: read needs: unittest-check runs-on: ubuntu-latest steps: @@ -167,9 +162,6 @@ jobs: --command "chmod +x ./.github/workflows/gpu_test.sh && ./.github/workflows/gpu_test.sh gluoncv/torch tests/model_zoo_torch" \ --wait auto: - permissions: - id-token: write - contents: read needs: unittest-check runs-on: ubuntu-latest steps: @@ -240,9 +232,6 @@ jobs: --command "chmod +x ./.github/workflows/gpu_test.sh && ./.github/workflows/gpu_test.sh gluoncv tests/auto" \ --wait build-docs: - permissions: - id-token: write - contents: read needs: [unittest-check, model_zoo_mxnet, model_zoo_torch, auto] runs-on: ubuntu-latest steps: From 98f11846d1d5657e15218601739490b581c67882 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 04:21:09 +0000 Subject: [PATCH 21/22] fix --- .github/workflows/unittest.yml | 80 +++++++++++++++++----------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 3ed503bb6..7d7f3b307 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -21,46 +21,46 @@ jobs: echo "$GITHUB_CONTEXT" - name: Checkout repository uses: actions/checkout@v2 - # - name: Setup Miniconda - # uses: conda-incubator/setup-miniconda@v2.0.0 - # with: - # auto-update-conda: true - # python-version: 3.7 - # # - name: sanity-check - # shell: bash -l {0} - # run: | - # conda env create -n gluon_cv_lint -f ./tests/pylint.yml - # conda env update -n gluon-cv-lint -f ./tests/pylint.yml --prune - # conda activate gluon-cv-lint - # conda list - # make clean - # make pylint - # - name: unit-test - # shell: bash -l {0} - # run: | - # conda env create -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml - # conda env update -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml --prune - # conda activate gluon_cv_py3_test - # conda list - # export CUDA_VISIBLE_DEVICES=0 - # export KMP_DUPLICATE_LIB_OK=TRUE - # make clean - # pip install --upgrade --force-reinstall --no-deps . - # env - # export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64 - # export MPLBACKEND=Agg - # export MXNET_CUDNN_AUTOTUNE_DEFAULT=0 - # export TINY_COCO=~/.mxnet/datasets/tiny_coco - # export TINY_MOTORBIKE=~/.mxnet/datasets/tiny_motorbike - # mkdir -p $TINY_COCO/annotations - # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/sub_val.zip --output sub_val.zip - # unzip -q sub_val.zip -d $TINY_COCO - # mv $TINY_COCO/sub_val $TINY_COCO/val2017 - # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/instances_val2017_tiny.json --output instances_val2017_tiny.json - # mv instances_val2017_tiny.json $TINY_COCO/annotations - # curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/tiny_motorbike.zip --output tiny_motorbike.zip - # unzip -q tiny_motorbike.zip -d $TINY_MOTORBIKE - # nosetests --with-timer --timer-ok 5 --timer-warning 20 -x --with-coverage --cover-package gluoncv -v tests/unittests + - name: Setup Miniconda + uses: conda-incubator/setup-miniconda@v2.0.0 + with: + auto-update-conda: true + python-version: 3.7 + - name: sanity-check + shell: bash -l {0} + run: | + conda env create -n gluon_cv_lint -f ./tests/pylint.yml + conda env update -n gluon-cv-lint -f ./tests/pylint.yml --prune + conda activate gluon-cv-lint + conda list + make clean + make pylint + - name: unit-test + shell: bash -l {0} + run: | + conda env create -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml + conda env update -n gluon_cv_py3_test -f tests/py3_mxnet_ci.yml --prune + conda activate gluon_cv_py3_test + conda list + export CUDA_VISIBLE_DEVICES=0 + export KMP_DUPLICATE_LIB_OK=TRUE + make clean + pip install --upgrade --force-reinstall --no-deps . + env + export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64 + export MPLBACKEND=Agg + export MXNET_CUDNN_AUTOTUNE_DEFAULT=0 + export TINY_COCO=~/.mxnet/datasets/tiny_coco + export TINY_MOTORBIKE=~/.mxnet/datasets/tiny_motorbike + mkdir -p $TINY_COCO/annotations + curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/sub_val.zip --output sub_val.zip + unzip -q sub_val.zip -d $TINY_COCO + mv $TINY_COCO/sub_val $TINY_COCO/val2017 + curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/mini_coco/instances_val2017_tiny.json --output instances_val2017_tiny.json + mv instances_val2017_tiny.json $TINY_COCO/annotations + curl -s https://gluoncv-ci.s3-us-west-2.amazonaws.com/tiny_motorbike.zip --output tiny_motorbike.zip + unzip -q tiny_motorbike.zip -d $TINY_MOTORBIKE + nosetests --with-timer --timer-ok 5 --timer-warning 20 -x --with-coverage --cover-package gluoncv -v tests/unittests - name: Save github context info(For push) if: ${{ github.event_name == 'push' }} run: | From bbdc69330c73b174cb32c974ea657d7097e9dd36 Mon Sep 17 00:00:00 2001 From: Weisu Yin Date: Tue, 29 Mar 2022 19:41:41 +0000 Subject: [PATCH 22/22] update role --- .github/workflows/build_test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 848ebca1e..211c1716f 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -52,7 +52,7 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + role-to-assume: ${{ secrets.GLUONCV_CI_ROLE }} role-duration-seconds: 7200 aws-region: us-east-1 - name: Install dependencies @@ -122,7 +122,7 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + role-to-assume: ${{ secrets.GLUONCV_CI_ROLE }} role-duration-seconds: 7200 aws-region: us-east-1 - name: Install dependencies @@ -192,7 +192,7 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + role-to-assume: ${{ secrets.GLUONCV_CI_ROLE }} role-duration-seconds: 7200 aws-region: us-east-1 - name: Install dependencies @@ -266,7 +266,7 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - role-to-assume: arn:aws:iam::985964311364:role/GluonCVCIRole + role-to-assume: ${{ secrets.GLUONCV_CI_ROLE }} role-duration-seconds: 7200 aws-region: us-east-1 - name: Install dependencies