[auto-verifier] verify commit 454fa9436c703da43a0dc0ae4b824f55bbc3479f #536
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: verify | |
on: push | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GH_PAT }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
git clone --depth=1 https://github.com/rainbou-kpr/verification-helper.git ~/verification-helper | |
pip3 install ~/verification-helper | |
- name: Get Dropbox token | |
env: | |
DROPBOX_APP_KEY: ${{ secrets.DROPBOX_APP_KEY }} | |
DROPBOX_APP_SECRET: ${{ secrets.DROPBOX_APP_SECRET }} | |
DROPBOX_REFRESH_TOKEN: ${{ secrets.DROPBOX_REFRESH_TOKEN }} | |
run: echo DROPBOX_TOKEN=$(curl https://api.dropbox.com/oauth2/token -d grant_type=refresh_token -d refresh_token=$DROPBOX_REFRESH_TOKEN -u $DROPBOX_APP_KEY:$DROPBOX_APP_SECRET | jq -r '.access_token') >> $GITHUB_ENV | |
- name: Run tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
YUKICODER_TOKEN: ${{ secrets.YUKICODER_TOKEN }} | |
GH_PAT: ${{ secrets.GH_PAT }} | |
run: oj-verify all -j $(nproc) --timeout=6000 |