Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore(Dependabot): Reconfigure depandabot workflow #47

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading