-
Notifications
You must be signed in to change notification settings - Fork 11
31 lines (28 loc) · 966 Bytes
/
Copy path_get-versions.yml
File metadata and controls
31 lines (28 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Get Python Versions
on:
workflow_call:
inputs:
production-python:
required: true
type: string
description: The production Python version (e.g. '3.12')
outputs:
required:
description: JSON array of required Python versions [production, next]
value: ${{ jobs.compute.outputs.required }}
experimental:
description: JSON array of experimental Python versions (beyond required)
value: ${{ jobs.compute.outputs.experimental }}
jobs:
compute:
runs-on: ubuntu-latest
outputs:
required: ${{ steps.versions.outputs.required }}
experimental: ${{ steps.versions.outputs.experimental }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Compute Python version matrix
id: versions
env:
PRODUCTION: ${{ inputs.production-python }}
run: python3 .github/scripts/get_versions.py