Skip to main content

Prepare assignment

Project description

Prepare assignment

Prepare assignment is a GitHub Actions inspired helper tool to prepare assignments at Fontys Venlo. The goal is to define jobs inside the prepare.yml that indicate how to convert a solution project into a student project.

Dependencies

  • Git
  • Python >=3.8

Example

First we need to have tasks available that can be executed. Take for example a look at the remove task.

The tests use a testproject, which contains an example of a prepare.yml, see below for convenience.

name: Test project
jobs:
  prepare:
    - name: remove out
      uses: remove
      with:
        input:
          - "out"
          - "out.txt"
        force: true
        recursive: true
    - name: codestripper
      id: codestripper
      uses: codestripper
      with:
        include:
          - "**/*.java"
          - "pom.xml"
        working-directory: "solution"
        verbosity: 5
    - name: Test a run command with substitution
      run: echo '${{ tasks.codestripper.outputs.stripped-files }}' > out.txt

For people familiar with GitHub Actions this should look very familiar. We have jobs that indicate what should happen to prepare an assignment. The tasks are defined in their own repositories, if the uses tag doesn't have a username/organization, it will default to prepare-assignment. So for example the remove task uses the following repository: prepare-assignment/remove

Tasks

There are three different kind of tasks available:

  • Run tasks: these execute a shell command (for now only bash is supported)
  • Python tasks: these execute a python script
  • Composite tasks: these combine multiple tasks into one

Custom tasks

It is possible to create custom (python/composite) tasks.

  1. Create a repository
  2. Define the properties of the task in task.yml, these include
    • id*: unique identifier
    • name*: name of the task
    • description*: short description
    • runs*: whether it is a python or composite task
    • inputs: the inputs for the task
    • outputs: the outputs that get set by the task
  3. Validate that the task definition is correct against the json schema
  4. If python task, create a script that implements desired functionality

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prepare_assignment-0.1.2.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prepare_assignment-0.1.2-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file prepare_assignment-0.1.2.tar.gz.

File metadata

  • Download URL: prepare_assignment-0.1.2.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1019-azure

File hashes

Hashes for prepare_assignment-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f3c9abf0ee00f6de1c960a6c5f8d7a2c816c1c3703a43d4dec701c4ae401c708
MD5 e7166ec4fb91803f52b88d6423588acb
BLAKE2b-256 7a0d26c5202230eb645c122e570f352e4a65da81b2d457c535b5a86de77396ed

See more details on using hashes here.

File details

Details for the file prepare_assignment-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: prepare_assignment-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1019-azure

File hashes

Hashes for prepare_assignment-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9eff9004d818951bd84cfc896db69bb6b3dc181719ab77ef3a908ef4b78c02c9
MD5 9b614d60387d684fc28e50d63b596998
BLAKE2b-256 00fa70a5af80bd618b1e1f82f89f5700b803e181d59b09e20304ff4c50614cbb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page