Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 1.46 KB

README.md

File metadata and controls

63 lines (45 loc) · 1.46 KB

assignment-corrector

Objective

The objective of this action is to help the teacher of any language to correct your own activities using the github actions.

How does it works

The idea is that the student will open a pull request to the repository of activities and them, given a set of tests, the action will run them on a container and compare the results between the two inputs.

You can take a look in the diagram below to see how the action works.

diagram

Inputs

programming-language

Required The name of the programming language that you want to use. The name must be the same of the language of the answers file.

The languages supported are:

  • python
  • javascript
  • ruby
  • rust
  • c
  • c++
  • elixir
  • fortran

answer-location

Required The url of the zip answers and your inputs. The url must be located in a secret called ANSWERLOCATION. The structure of the zip file has to be the following:

exercises/
├──question_1/
│       ├─── answer.txt
│       └─── input.txt
├──question_2/
│       ├─── answer.txt
│       └─── input.txt
└──question_3/
        ├─── answer.txt
        └─── input.txt

Outputs

time

The time we received your task

Use Cases

uses: actions/[email protected]
with:
    programming-language: 'python'
    answer-location: ${{ secrets.AnswerLocation }}