fix: postgres environment variable #427
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: 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 |