Skip to content

Commit

Permalink
Don't test
Browse files Browse the repository at this point in the history
  • Loading branch information
billytrend-cohere committed Jul 29, 2024
1 parent 9a6c0a6 commit b690f85
Showing 1 changed file with 63 additions and 63 deletions.
126 changes: 63 additions & 63 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,76 +20,76 @@ jobs:
run: poetry install
- name: Compile
run: poetry run mypy .
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Bootstrap poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-in-project: false
- name: Install dependencies
run: poetry install
- name: Test
run: poetry run pytest .
env:
CO_API_KEY: ${{ secrets.COHERE_API_KEY }}
# test:
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout repo
# uses: actions/checkout@v3
# - name: Set up python
# uses: actions/setup-python@v4
# with:
# python-version: 3.8
# - name: Bootstrap poetry
# uses: snok/install-poetry@v1
# with:
# version: 1.5.1
# virtualenvs-in-project: false
# - name: Install dependencies
# run: poetry install
# - name: Test
# run: poetry run pytest .
# env:
# CO_API_KEY: ${{ secrets.COHERE_API_KEY }}

test-langchain-cohere:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.10.14
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-in-project: false
- name: Install dependencies
run: poetry install
- name: Test langchain-cohere
run: |
echo "Initial dir $(pwd)"
cd ..
echo "Cloning langchain-cohere..."
git clone https://github.com/langchain-ai/langchain-cohere.git && cd langchain-cohere/libs/cohere
echo "Cloned langchain-cohere, current dir $(pwd)"
# test-langchain-cohere:
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout repo
# uses: actions/checkout@v3
# - name: Set up python
# uses: actions/setup-python@v4
# with:
# python-version: 3.10.14
# - name: Install and configure Poetry
# uses: snok/install-poetry@v1
# with:
# version: 1.5.1
# virtualenvs-in-project: false
# - name: Install dependencies
# run: poetry install
# - name: Test langchain-cohere
# run: |
# echo "Initial dir $(pwd)"
# cd ..
# echo "Cloning langchain-cohere..."
# git clone https://github.com/langchain-ai/langchain-cohere.git && cd langchain-cohere/libs/cohere
# echo "Cloned langchain-cohere, current dir $(pwd)"

echo "poetry install --with test,test_integration"
poetry install --with test,test_integration
# echo "poetry install --with test,test_integration"
# poetry install --with test,test_integration

echo "Going to uninstall cohere package, and install the current version from the repo"
cd ../../../cohere-python && echo "Current dir $(pwd)"
echo "Current dir $(ls)"
pip uninstall cohere
pip install .
cd ../langchain-cohere/libs/cohere
# echo "Going to uninstall cohere package, and install the current version from the repo"
# cd ../../../cohere-python && echo "Current dir $(pwd)"
# echo "Current dir $(ls)"
# pip uninstall cohere
# pip install .
# cd ../langchain-cohere/libs/cohere

echo "Current cohere installation: $(pip freeze | grep cohere)"
make test
make integration_test
echo "tests passed"
# echo "Current cohere installation: $(pip freeze | grep cohere)"
# make test
# make integration_test
# echo "tests passed"

set -eu
# set -eu

STATUS="$(git status)"
echo "$STATUS"
# STATUS="$(git status)"
# echo "$STATUS"

# grep will exit non-zero if the target message isn't found,
# and `set -e` above will cause the step to fail.
echo "$STATUS" | grep 'nothing to commit, working tree clean'
env:
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
# # grep will exit non-zero if the target message isn't found,
# # and `set -e` above will cause the step to fail.
# echo "$STATUS" | grep 'nothing to commit, working tree clean'
# env:
# COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}

publish:
needs: [compile, test]
Expand Down

0 comments on commit b690f85

Please sign in to comment.