Skip to content

Commit

Permalink
Chore(Dependabot): Reconfigure depandabot workflow (#47)
Browse files Browse the repository at this point in the history
* chore: add gitignore

* fix: remove seperate dependabot workflow
  • Loading branch information
KevKibe authored Jun 12, 2024
1 parent 293c6e5 commit 8d9b635
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 37 deletions.
34 changes: 2 additions & 32 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Tests

on:
pull_request_target:
branches: [master]
on: [pull_request]

jobs:
test:
Expand Down Expand Up @@ -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
pytest src/tests/cohereindex_test.py
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8d9b635

Please sign in to comment.