-
Notifications
You must be signed in to change notification settings - Fork 15
57 lines (47 loc) · 1.22 KB
/
modules.yml
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
50
51
52
53
54
55
56
57
#
# this is RAGStack specific modules workflow
#
name: RAGStack Modules and Adapter CI
on:
push:
branches:
- main
paths:
- "ragstack/**"
pull_request:
paths:
- "ragstack/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Cache Poetry virtualenv and dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/pypoetry/virtualenvs
**/poetry.lock
key: ${{ runner.os }}-poetry-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
cd ragstack/colbertbase
poetry install
- name: Lint with flake8
run: |
cd ragstack/colbertbase
poetry run flake8 ./colbertbase
- name: Test with pytest
run: |
cd ragstack/colbertbase
poetry run pytest