An open API service indexing awesome lists of open source software.

https://github.com/lukesavefrogs/setup-jython

Set up your GitHub Actions workflow with a specific Jython version
https://github.com/lukesavefrogs/setup-jython

github-actions jython workflow wsadmin

Last synced: about 1 year ago
JSON representation

Set up your GitHub Actions workflow with a specific Jython version

Awesome Lists containing this project

README

          

# setup-jython

[![Jython tests](https://github.com/LukeSavefrogs/setup-jython/actions/workflows/test-action.yml/badge.svg)](https://github.com/LukeSavefrogs/setup-jython/actions/workflows/test-action.yml)
[![Source download URLs status](https://github.com/LukeSavefrogs/setup-jython/actions/workflows/test-urls.yml/badge.svg)](https://github.com/LukeSavefrogs/setup-jython/actions/workflows/test-urls.yml)

This action provides the following functionalities for GitHub Actions users:

- Installing a version of Jython and adding it to `PATH`
- Customizing the installation path
- Cache the installed Jython binaries for faster setup

## Basic usage

```yml
steps:
- name: Install Jython
uses: LukeSavefrogs/setup-jython@v3
with:
jython-version: '2.5.2'

- name: Run individual commands
run: jython -c 'import sys, os; print(os.name, sys.version)';

- name: Run a specific script
run: jython /path/to/script.py
```

## Inputs

### `jython-version`

Specify the version of Jython to install. The value must be one of the versions listed in the [Supported versions](#supported-versions) section.



Type
Required
Default




string
yes
-

### `installation-path`

Specify the path where Jython will be installed. Please note that this is usually not needed, since the binaries are always added to `PATH` anyway.



Type
Required
Default




string
no
~/jython/

## Outputs

### `download-url`

The URL from which the Jython installer was downloaded.

### `cache-hit`

Boolean value that indicates whether a cache hit occurred on the primary key.

## Supported versions

This action supports all versions (_both stable and development releases_) currently listed on the official repositories:

- [SourceForge - Stable](https://sourceforge.net/projects/jython/files/jython/) (`2.0` - `2.5.2`)
- [SourceForge - Development](https://sourceforge.net/projects/jython/files/jython-dev/) (`2.5a1` - `2.7.0a2`)
- [Maven](https://search.maven.org/artifact/org.python/jython-installer) (`2.5.3-rc1` - `2.7.3`)