base colbert implementation #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |