Skip to content

Dev action #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: datalab
Choose a base branch
from
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
40 changes: 40 additions & 0 deletions .github/workflows/pamoreno-datalab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: datalab-action-test

on:
push:
branches: [ datalab ]
pull_request:
types: [review_requested, ready_for_review]
branches: [ datalab ]

jobs:
test:
runs-on: ubuntu-latest
name: datalab-test
steps:
- name: checkout
uses: actions/checkout@v2
- name: test
id: test
uses: pamoreno/datalab-action@v1
with:
target: 'test'

grade:
runs-on: ubuntu-latest
name: datalab-grade
steps:
- name: checkout
uses: actions/checkout@v2
- name: grade
id: grade
uses: pamoreno/datalab-action@v1
with:
target: 'grade'
- name: Grade Comment
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: ${{ steps.grade.outputs.result }}
- name: Get the output log
run: echo "The result was ${{ steps.grade.outputs.result }}"