Update verify.yml #18
Workflow file for this run
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: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
- name: Install dependencies | |
run: pip3 install -U online-judge-verify-helper | |
- name: Sync gh-pages with origin | |
run: | | |
git fetch origin gh-pages:gh-pages | |
git checkout gh-pages | |
git reset --hard origin/gh-pages | |
git checkout master | |
env: | |
GH_PAT: ${{ secrets.GH_PAT }} | |
- name: Run tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_PAT: ${{ secrets.GH_PAT }} | |
run: oj-verify all |