Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Add CC-100 languages (#51) #104

Add CC-100 languages (#51)

Add CC-100 languages (#51) #104

Workflow file for this run

name: Format Checks
on:
pull_request:
branches: [ master ]
paths: [ 'architectures/**', 'tasks/**', 'subtasks/**' ]
push:
branches: [ master ]
paths: [ 'architectures/**', 'tasks/**', 'subtasks/**' ]
jobs:
# Check if the file format seems valid
check_format:
name: File format
runs-on: ubuntu-latest
# output changed files for the next step
outputs:
added_modified: ${{ steps.files.outputs.added_modified }}
steps:
- uses: actions/checkout@v2
- id: files
uses: calpt/get-changed-files@master
with:
format: 'space-delimited'
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install
run: |
pip install -r scripts/requirements.txt
- name: Architecture entry format checking
run: |
python scripts/check_format.py architecture ${{ steps.files.outputs.added_modified }}
- name: Task entry format checking
run: |
python scripts/check_format.py task ${{ steps.files.outputs.added_modified }}
- name: Subtask entry format checking
run: |
python scripts/check_format.py subtask ${{ steps.files.outputs.added_modified }}
- name: File generation test
run: |
python scripts/generate.py