-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.02 KB
/
build.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
name: Test nyx_client and nyx_extras
on:
push:
branches: [main]
pull_request:
jobs:
test:
strategy:
matrix:
project: [nyx_client, nyx_extras]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ matrix.project }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.10.14
- uses: snok/install-poetry@v1
with:
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies for nyx_client
if: matrix.project == 'nyx_client'
run: poetry install --with dev --no-interaction
env:
POETRY_INSTALLER_PARALLEL: 0
- name: Install dependencies for nyx_extras
if: matrix.project == 'nyx_extras'
run: poetry install --with dev --extras "langchain-openai langchain-cohere" --no-interaction
env:
POETRY_INSTALLER_PARALLEL: 0
- run: make lint
- run: make tests