-
Notifications
You must be signed in to change notification settings - Fork 1
92 lines (82 loc) · 2.28 KB
/
test-SinglePythonVersion.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Test Python Package on Single Python Version
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'
PYTHON_VERSION:
description: 'Python version'
required: true
type: choice
options:
- '3.5'
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
default: '3.9'
JAVA_VERSION:
description: 'Java version (LTS versions)'
required: true
type: choice
options:
- '8'
- '11'
- '17'
- '21'
default: '8'
PROACTIVE_URL:
description: 'ProActive Server URL'
required: true
type: string
default: 'https://try.activeeon.com:8443'
PROACTIVE_PYTHON_SDK:
description: 'ProActive Python SDK'
required: true
type: choice
options:
- 'install_latest'
- 'install_latest_test'
default: 'install_latest'
jobs:
test:
runs-on: '${{ github.event.inputs.UBUNTU_VERSION }}'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '${{ github.event.inputs.PYTHON_VERSION }}'
- name: Install Java ${{ github.event.inputs.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
java-version: '${{ github.event.inputs.JAVA_VERSION }}'
distribution: 'adopt'
- name: Display Pip and Python version
run: python -m pip -V
- name: Setting up virtual environment
run: make virtualenv
- name: Installing proactive python sdk
run: make ${{ github.event.inputs.PROACTIVE_PYTHON_SDK }}
- name: Check proactive version
run: make print_version
- name: Run scripts using secrets
env:
PROACTIVE_URL: ${{ github.event.inputs.PROACTIVE_URL }}
PROACTIVE_USERNAME: ${{ secrets.PROACTIVE_USERNAME }}
PROACTIVE_PASSWORD: ${{ secrets.PROACTIVE_PASSWORD }}
run: make run_all
- name: Show local files
run: pwd && find .