Skip to content

Commit

Permalink
ci: pr check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret committed Oct 24, 2024
1 parent 93f7571 commit 959479e
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
name: PR checks
name: PR checks for algorithm submission

on:
pull_request:
paths:
- 'algorithms/*.yaml'

env:
IMAGE_NAME: ${{ github.repository }}-evaluator

jobs:

check_yaml:
container:
image: ghcr.io/${{ env.IMAGE_NAME }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:

- name: Convert yaml
run: yq -o json FILE.yaml > FILE.json

- name: Validate jsonschema
run: jsonschema-cli -i FILE.json SCHEMA.json

check_image:
steps:
- name: Pull image
run: docker pull $(sed 's/^image: \(.*\)$' FILE.yaml)

0 comments on commit 959479e

Please sign in to comment.