File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : New Problem Check
2+
3+ on :
4+ push :
5+ paths :
6+ - " utils/new_problem.yaml"
7+ - " utils/validate_yaml.py"
8+ pull_request :
9+ - " utils/new_problem.yaml"
10+ - " utils/validate_yaml.py"
11+ workflow_dispatch : # allow triggering workflow manually
12+ inputs :
13+ reason :
14+ description : " Reason for Running"
15+ required : false
16+ default : " Manually trigger problem check"
17+
18+ jobs :
19+ check_new_problems :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v3
24+
25+ - name : Set up Python
26+ uses : actions/setup-python@v4
27+ with :
28+ python-version : ' 3.x'
29+
30+ - name : Install dependencies
31+ run : |
32+ python -m pip install --upgrade pip
33+ pip install -r utils/requirements.txt
34+
35+ - name : Run New Problem Check
36+ run : |
37+ python utils/validate_yaml.py utils/new_problem.yaml
38+
You can’t perform that action at this time.
0 commit comments