Skip to content

fix: postgres environment variable #427

fix: postgres environment variable

fix: postgres environment variable #427

Workflow file for this run

name: Python CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pip install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache poetry dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- run: poetry install
- run: poetry show --latest
- run: poetry run pytest --cov --cov-report xml
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
file: coverage.xml
flag-name: python-${{ matrix.python-version }}
# test-mac:
# runs-on: macos-latest
# strategy:
# matrix:
# python-version: ['3.10']
# steps:
# - uses: actions/checkout@v4
# - name: Install Poetry
# run: |
# curl -sSL https://install.python-poetry.org | python -
# echo "$HOME/.local/bin" >> $GITHUB_PATH
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# cache: 'poetry'
# - name: Install Faiss
# run: |
# brew install cmake libomp openblas
# git clone https://github.com/facebookresearch/faiss.git
# cd faiss
# cmake -B build -DFAISS_ENABLE_GPU=ON -DFAISS_ENABLE_PYTHON=ON -DCMAKE_BUILD_TYPE=Release
# make -C build -j
# cd build/faiss/python
# python setup.py install
# shell: bash
# - name: Install Poetry
# run: pip install poetry
# - name: Install Project Dependencies
# run: poetry install
# - name: Show Latest Poetry Packages
# run: poetry show --latest
# - name: Run Tests
# run: poetry run pytest --cov