Skip to content

Commit 7383f4f

Browse files
author
Val Brodsky
committed
Temp add a workflow file to run prod tests
1 parent 9c42ec4 commit 7383f4f

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Labelbox Python SDK Publish PROD Test
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Release Tag'
8+
required: true
9+
skip-tests:
10+
description: 'Skip PROD Test (Do not do this unless there is an emergency)'
11+
default: false
12+
type: boolean
13+
14+
15+
concurrency:
16+
group: ${{ github.workflow }}
17+
cancel-in-progress: false
18+
19+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
20+
permissions:
21+
contents: read
22+
pages: write
23+
id-token: write
24+
25+
jobs:
26+
build:
27+
runs-on: ubuntu-latest
28+
outputs:
29+
hashes: ${{ steps.hash.outputs.hashes }}
30+
steps:
31+
- uses: actions/checkout@v4
32+
with:
33+
ref: ${{ inputs.tag }}
34+
- name: Install the latest version of rye
35+
uses: eifinger/setup-rye@v2
36+
with:
37+
version: ${{ vars.RYE_VERSION }}
38+
enable-cache: true
39+
- name: Rye Setup
40+
run: |
41+
rye config --set-bool behavior.use-uv=true
42+
- name: Create build
43+
working-directory: libs/labelbox
44+
run: |
45+
rye sync
46+
rye build
47+
- name: "Generate hashes"
48+
id: hash
49+
run: |
50+
cd dist && echo "hashes=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
51+
- uses: actions/upload-artifact@v4
52+
with:
53+
name: build
54+
path: ./dist

0 commit comments

Comments
 (0)