-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (45 loc) · 1.45 KB
/
build-remotivelabs-broker-ci.yaml
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
name: Build remotivelabs-broker package and documentation
on: push
jobs:
build:
name: Build remotivelabs-broker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Build package and docs
env:
NO_TTY: true
run: ./python/remotivelabs-broker/docker-build.sh
- id: build_output
run: echo "whl_path=$(ls python/remotivelabs-broker/dist/*.whl)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: remotivelabs-broker-whl
path: ${{ steps.build_output.outputs.whl_path }}
if-no-files-found: error
retention-days: 1
overwrite: true
test:
name: Install remotivelabs-broker
needs: build
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
os: [ubuntu-22.04, ubuntu-24.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v4
with:
name: remotivelabs-broker-whl
- id: download_artifact
run: echo "library_path=$(ls *.whl)" >> $GITHUB_OUTPUT
shell: bash
- name: Install remotivelabs-broker
run: pip install ${{ steps.download_artifact.outputs.library_path }}
shell: bash