https://github.com/mdanalysis/get-latest-python-version
https://github.com/mdanalysis/get-latest-python-version
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mdanalysis/get-latest-python-version
- Owner: MDAnalysis
- License: mit
- Created: 2022-08-13T02:50:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-21T05:12:32.000Z (over 2 years ago)
- Last Synced: 2024-10-29T17:47:25.340Z (over 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-latest-python-version
This action helps get the most recent released Python versions.
## Basic usage
See the action.yaml for all inputs.
For now, they are quite restrictive:
the only option specifiable is ``last-n-minor-release``.
However, the associated Python script has much more flexibility.
We welcome contributions extending the flexibility to the action,
or updating the script itself!
Examples:
The below workflow sets up a Python environment
with the *previous* stable minor release.
e.g. Right now, 3.10 is the most recent stable minor release;
this will set up a Python 3.9 environment.
```yaml
steps:
- uses: actions/checkout@v3
- id: get-python-version
uses: MDAnalysis/get-latest-python-version@main
with:
last-n-minor-release: 1
- uses: actions/setup-python@v4
with:
python-version: ${{ steps.get-python-version.outputs.python-version }}
```