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
- Host: GitHub
- URL: https://github.com/lukesavefrogs/setup-jython
- Owner: LukeSavefrogs
- License: mit
- Created: 2023-05-18T01:25:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-20T15:33:03.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T14:54:28.725Z (about 1 year ago)
- Topics: github-actions, jython, workflow, wsadmin
- Language: Python
- Homepage: https://www.jython.org/
- Size: 54.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# setup-jython
[](https://github.com/LukeSavefrogs/setup-jython/actions/workflows/test-action.yml)
[](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`)