feat: Check if url is an HTTP URL #82
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: tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
environment: env | |
strategy: | |
matrix: | |
# Max 4 Python versions here, because error: | |
# "Reached max indexes allowed (5). To add more indexes, upgrade your plan." | |
python-version: ["3.11", "3.12", "3.13"] | |
services: | |
postgres: | |
image: pgvector/pgvector:0.7.2-pg15 | |
env: | |
POSTGRES_DB: v2p | |
POSTGRES_HOST: localhost | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password | |
ports: | |
- 5629:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
qdrant: | |
image: qdrant/qdrant:latest | |
ports: | |
- 6333:6333 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - | |
- name: Configure Poetry to install to /home/runner/.local/bin | |
run: | | |
echo 'export PATH="$HOME/.local/bin:$PATH"' >> $GITHUB_ENV | |
- name: Install dependencies | |
run: poetry install | |
- name: Run tests | |
run: poetry run pytest | |
env: | |
PINECONE_API_KEY: ${{secrets.PINECONE_API_KEY}} |