-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (49 loc) · 1.5 KB
/
verify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: verify
on:
push:
branches:
- main
jobs:
verify:
runs-on: ubuntu-latest
# https://github.com/online-judge-tools/verification-helper/issues/406
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
- name: Install dependencies
run: pip3 install -U online-judge-verify-helper
# required only if you want to verify Haskell code
- name: Install dependencies (Haskell)
uses: actions/setup-haskell@v1
# required only if you want to verify Go code
- name: Install dependencies (Go)
uses: actions/setup-go@v3
#
#- name: Set up Rust (1.42.0)
# uses: actions-rs/toolchain@v1
# with:
# toolchain: 1.42.0-x86_64-unknown-linux-gnu
# default: true
# profile: minimal
# required by cargo-udeps
#- name: Set up Rust (nightly)
# uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly-x86_64-unknown-linux-gnu
# default: true
# profile: minimal
# required only if you set `languages.rust.list_dependencies_backend.kind` to `"cargo-udeps"`
#- name: Install cargo-udeps for Rust
# uses: actions-rs/[email protected]
# with:
# crate: cargo-udeps
# use-tool-cache: true
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
YUKICODER_TOKEN: ${{ secrets.YUKICODER_TOKEN }}
GH_PAT: ${{ secrets.GH_PAT }}
run: oj-verify all