Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/new_problem_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: New Problem Check

on:
push:
paths:
- "utils/new_problem.yaml"
pull_request:
paths:
- "utils/new_problem.yaml"
workflow_dispatch: # allow triggering workflow manually
inputs:
reason:
description: "Reason for Running"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably good to have a more informative description, maybe something like: "Automatically checking formatting."

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just the input prompt. You are supposed to input your reason for running 😉

required: false
default: "Manually trigger problem check"

jobs:
check_new_problems:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r utils/requirements.txt

- name: Run New Problem Check
run: |
python utils/validate_yaml.py utils/new_problem.yaml

Loading