-
Notifications
You must be signed in to change notification settings - Fork 145
49 lines (48 loc) · 1.14 KB
/
install.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: Installation
on:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
- release/*
workflow_dispatch: {}
jobs:
streaming-Pip-Install:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
python_version:
- "3.9"
- "3.10"
- "3.11"
install_version:
- ""
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Cache pip
uses: actions/cache@v3
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Setup
run: |
set -exuo pipefail
python -m pip install --upgrade pip wheel
python -m pip install .${{ matrix.install_version }}
- name: Run import
id: tests
run: |
set -exuo pipefail
python -c "import streaming"