-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (56 loc) · 1.82 KB
/
build_python_package.yml
File metadata and controls
69 lines (56 loc) · 1.82 KB
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
# This workflow will install Python dependencies, run tests and pylint with a
# variety of Python versions
name: Deployment python module to development environment
on:
workflow_call:
inputs:
package-name:
description: Name of the python package
required: true
type: string
package-path:
description: Path to the package definition files
required: true
type: string
source-path:
description: Path to the package source files
required: true
type: string
python-version:
description: Python version to use in python environment setup for QA test and build package.
required: false
type: string
default: "3.7"
is-test-package:
description: True if is a test package for testPypi
required: false
type: boolean
default: false
jobs:
call-setup-python:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# python-version: ["3.7", "3.9", "3.11"]
# python-version: ["3.7"]
python-version: ["${{ inputs.python-version }}"]
environment: development
steps:
- uses: actions/checkout@v3
- name: Setup python environment
uses: WattRex/System-Tools/.github/actions/setup-python@develop
with:
python-version: ${{ matrix.python-version }}
- name: Perform QA test and build package
uses: WattRex/System-Tools/.github/actions/build-package@develop
with:
source-path: ${{ inputs.source-path }}
package-path: ${{ inputs.package-path }}
is-test-package: ${{ inputs.is-test-package }}
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.package-name }}
path: |
dist