-
Notifications
You must be signed in to change notification settings - Fork 260
49 lines (44 loc) · 1.5 KB
/
test_installation.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
name: Test robusta-cli installation package
on: [push, pull_request]
jobs:
build_package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build and install package
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry build
pip3 install ./dist/robusta_cli-0.0.0-py3-none-any.whl
- name: Upload robusta package artifact
uses: actions/upload-artifact@v2
with:
name: robusta-pkg
path: dist/robusta_cli-0.0.0-py3-none-any.whl
# we use a totally separate job for testing the package because we want an environment which is free of all the
# dependencies that poetry itself requires
test_package:
needs: build_package
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10" ]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Download robusta-pkg
uses: actions/download-artifact@v2
with:
name: robusta-pkg
- name: Install and test robusta cli
run: |
ls
pip3 install robusta_cli-0.0.0-py3-none-any.whl
robusta version