Skip to content

Commit 515700b

Browse files
committed
github action that triggers checks
1 parent 47cdb6e commit 515700b

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+

0 commit comments

Comments
 (0)