forked from Arelle/Arelle
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.27 KB
/
Copy pathpython-package.yml
File metadata and controls
51 lines (48 loc) · 1.27 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
name: Build and publish python package
on:
workflow_call:
inputs:
python_version:
default: '3.14.7'
description: 'Python version to use'
required: false
type: string
workflow_dispatch:
inputs:
python_version:
default: '3.14.7'
description: 'Python version to use'
required: true
type: string
permissions: {}
jobs:
build-package:
runs-on: ubuntu-24.04
steps:
- name: Checkout arelle
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v7.0.0
with:
cache: 'pip'
check-latest: true
python-version: ${{ inputs.python_version }}
- name: Build python package
run: |
python -m pip install --upgrade pip setuptools wheel
pip install build
python -m build
- name: Upload tar artifact
uses: actions/upload-artifact@v7.0.1
with:
name: arelle.tar.gz
if-no-files-found: error
path: dist/*.tar.gz
- name: Upload wheel artifact
uses: actions/upload-artifact@v7.0.1
with:
name: arelle.whl
if-no-files-found: error
path: dist/*.whl