-
Notifications
You must be signed in to change notification settings - Fork 144
55 lines (51 loc) · 1.92 KB
/
build-vizro-whl.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
name: Build
on:
push:
branches: [main]
pull_request:
branches:
- main
paths:
- "vizro-core/**"
- "vizro-ai/examples/**"
defaults:
run:
working-directory: vizro-core
env:
PYTHON_VERSION: "3.12"
jobs:
build-whl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Hatch
run: pip install hatch
- name: Build vizro-core package
run: |
hatch build -t wheel
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: pip
path: vizro-core/dist/*.whl
retention-days: 14
# The below can be commented out in order to dry run the test creation of the PyCafe links
# Once satisfied, comment them again, because the actual links will be created by the pycafe-dashboards.yml workflow
# which is run from the main branch
############### Start of PyCafe links creation ###############
# - name: Print PR Number
# run: |
# echo "Pull Request Number: ${{ github.event.workflow_run.pull_requests[0].number }}"
# - name: Create PyCafe links
# run: |
# PR_NUMBER=${{ github.event.workflow_run.pull_requests[0].number || '' }}
# if [ -n "$PR_NUMBER" ]; then
# hatch run python ../tools/pycafe/create_pycafe_links.py --github-token ${{ github.token }} --repo-name ${{ github.repository }} --pr-number $PR_NUMBER --run-id ${{ github.run_id }} --commit-sha ${{ github.sha }}
# else
# hatch run python ../tools/pycafe/create_pycafe_links.py --github-token ${{ github.token }} --repo-name ${{ github.repository }} --run-id ${{ github.run_id }} --commit-sha ${{ github.sha }}
# fi
############### End of PyCafe links creation ###############