-
Notifications
You must be signed in to change notification settings - Fork 16
39 lines (39 loc) · 1.05 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
name: Install Test
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
jobs:
install:
name: ${{ matrix.os }} - ${{ matrix.python_version }} install
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python_version: ["3.9", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Set up python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- uses: actions/checkout@v3
- name: Build package
run: make package
- name: Install package
run: |
python -m pip install "unpacked_sdist/."
- name: Test by importing packages
run: |
python -c "import trane"
- name: Check package conflicts
run: |
python -m pip check
- name: Install add ons
run: |
python -m pip install "unpacked_sdist/[llm]"
- name: Test by importing packages
run: |
python -c "import openai"