Update slow tests #624
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update slow tests | |
on: | |
schedule: | |
# Every day at 5:05pm EDT | |
- cron: "5 21 * * *" | |
# Have the ability to trigger this job manually | |
workflow_dispatch: | |
permissions: | |
id-token: write | |
contents: write | |
defaults: | |
run: | |
working-directory: torchci | |
jobs: | |
update-slow-stats: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: yarn install --frozen-lockfile | |
- run: yarn --silent node scripts/updateSlowTests.mjs > slow-tests.json | |
env: | |
ROCKSET_API_KEY: ${{ secrets.ROCKSET_API_KEY }} | |
- name: Push file to this repository | |
uses: dmnemec/copy_file_to_another_repo_action@5f40763ccee2954067adba7fb8326e4df33bcb92 | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
source_file: 'torchci/slow-tests.json' | |
destination_repo: 'pytorch/test-infra' | |
destination_folder: 'stats' | |
destination_branch: generated-stats | |
user_email: '[email protected]' | |
user_name: 'PyTorch Test Infra' | |
commit_message: 'Updating slow tests stats' | |
- name: configure aws credentials | |
id: aws_creds | |
uses: aws-actions/[email protected] | |
with: | |
role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_update-slow-tests | |
aws-region: us-east-1 | |
- name: Upload file to s3 | |
run: | | |
python3 -mpip install awscli==1.27.69 | |
aws s3 cp "slow-tests.json" s3://ossci-metrics/slow-tests.json |