From bbc8ac65e91a05bd6fddf9004850401befd5820b Mon Sep 17 00:00:00 2001 From: KevKibe Date: Wed, 12 Jun 2024 09:24:37 +0300 Subject: [PATCH 1/2] chore: add gitignore --- .gitignore | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 305c4f3..51d9c74 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ -src/_openai/__pycache__ venv +.env src/_openai/main.py -src/tests/__pycache__ -src/_cohere/__pycache__ -src/_google/__pycache__ -.DS_STORE +**/__pycache__ +**/.flashrank_cache +.DS_Store \ No newline at end of file From d14a0306aa349439ad11a14feb588b4b0f699f82 Mon Sep 17 00:00:00 2001 From: KevKibe Date: Wed, 12 Jun 2024 09:26:04 +0300 Subject: [PATCH 2/2] fix: remove seperate dependabot workflow --- .github/workflows/tests.yaml | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 195e6bf..b3af880 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,8 +1,6 @@ name: Tests -on: - pull_request_target: - branches: [master] +on: [pull_request] jobs: test: @@ -31,32 +29,4 @@ jobs: run: | pytest src/tests/openaiindex_test.py pytest src/tests/googleindex_test.py - pytest src/tests/cohereindex_test.py - - dependabot-test-run: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - - name: Install dependencies - run: | - pip install -r requirements.txt --no-cache-dir - pip install pytest einops lion-pytorch - - - name: Test with pytest - env: - PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }} - GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }} - run: | - pytest src/tests/openaiindex_test.py - pytest src/tests/googleindex_test.py - pytest src/tests/cohereindex_test.py \ No newline at end of file + pytest src/tests/cohereindex_test.py \ No newline at end of file