This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
Add module for indexing and searching embeddings #685
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
name: Lint | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- "*.yml" | |
- "*.md" | |
- "*.sql" | |
jobs: | |
lint_and_test: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ['3.9'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install apt dependencies | |
run: sudo apt-get install -y libpq-dev | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Node # for pyright | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12' | |
- name: Set Variables | |
id: set_variables | |
shell: bash | |
run: | | |
echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_OUTPUT | |
echo "PIP_CACHE=$(pip cache dir)" >> $GITHUB_OUTPUT | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.set_variables.outputs.PIP_CACHE }} | |
key: ${{ runner.os }}-pip-${{ steps.set_variables.outputs.PY }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox==3.25.0 | |
- name: Lint | |
run: | | |
tox -e lint |