-
Notifications
You must be signed in to change notification settings - Fork 11
50 lines (46 loc) · 1.32 KB
/
workflow-build-python-package.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
name: Build Python package
on:
workflow_call:
inputs:
create_dist:
required: false
type: boolean
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
architecture: 'x64'
cache: 'pip'
cache-dependency-path: '**/setup.py'
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'yarn'
- name: Installation dependencies
run: pip install -U jupyterlab==3.0 check-manifest
- name: Yarn dependencies
run: jlpm
- name: Build the extension
run: |
set -eux
jlpm run eslint:check
pip install .
- name: Check extensions is enabled
run: |
jupyter server extension list 2>&1 | grep -ie "cs3api4lab.*OK"
jupyter labextension list 2>&1 | grep -ie "cs3api4lab.*OK"
# python -m jupyterlab.browser_check # Disable test for lack of infrastructure
- name: Create Dist
if: ${{ inputs.create_dist }}
run: |
pip install build
python -m build --sdist
- uses: actions/upload-artifact@v3
if: ${{ inputs.create_dist }}
with:
name: cs3api4lab-dist
path: dist