Skip to content

Build using multiple Python versions #8

Build using multiple Python versions

Build using multiple Python versions #8

name: Build using multiple Python versions
on:
workflow_dispatch:
inputs:
UBUNTU_VERSION:
description: 'Ubuntu version'
required: true
type: choice
options:
- 'ubuntu-18.04'
- 'ubuntu-20.04'
- 'ubuntu-22.04'
- 'ubuntu-latest'
default: 'ubuntu-20.04'
JAVA_VERSION:
description: 'Java version (LTS versions)'
required: true
type: choice
options:
- '8'
- '11'
- '17'
- '21'
default: '8'
jobs:
build:
runs-on: '${{ github.event.inputs.UBUNTU_VERSION }}'
strategy:
matrix:
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Java ${{ github.event.inputs.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
java-version: '${{ github.event.inputs.JAVA_VERSION }}'
distribution: 'adopt'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Pip and Python version
run: python -m pip -V
- name: Setting up project
run: make setup
- name: Setting up virtual environment
run: make setup_venv
- name: Building package
run: make build
- name: Installing proactive from dist
run: make install
- name: Check proactive version
run: make print_version