Skip to content

Commit 3892d08

Browse files
committed
added the test-installation flow from original robusta project
1 parent d015b6a commit 3892d08

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Test robusta-cli installation package
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build_package:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Python
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: 3.8
14+
- name: Build and install package
15+
run: |
16+
curl -sSL https://install.python-poetry.org | python3 -
17+
poetry build
18+
pip3 install ./dist/robusta_cli-0.0.0-py3-none-any.whl
19+
- name: Upload robusta package artifact
20+
uses: actions/upload-artifact@v2
21+
with:
22+
name: robusta-pkg
23+
path: dist/robusta_cli-0.0.0-py3-none-any.whl
24+
25+
26+
# we use a totally separate job for testing the package because we want an environment which is free of all the
27+
# dependencies that poetry itself requires
28+
test_package:
29+
needs: build_package
30+
runs-on: ubuntu-latest
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
35+
36+
steps:
37+
- name: Set up Python ${{ matrix.python-version }}
38+
uses: actions/setup-python@v2
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
- name: Download robusta-pkg
42+
uses: actions/download-artifact@v2
43+
with:
44+
name: robusta-pkg
45+
- name: Install and test robusta cli
46+
run: |
47+
ls
48+
pip3 install robusta_cli-0.0.0-py3-none-any.whl
49+
robusta version

0 commit comments

Comments
 (0)