Skip to content

Commit

Permalink
First commit from WorkingCopy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdaprod committed Feb 29, 2024
1 parent 9d579c3 commit b969737
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "pip" # Python package manager
directory: "/" # Location of the Python project
schedule:
interval: "weekly" # How often to check for updates
- package-ecosystem: "docker" # Docker
directory: "/" # Location of Dockerfiles
schedule:
interval: "weekly"
44 changes: 44 additions & 0 deletions .github/workflows/run-python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Run Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
services:
minio:
image: minio/minio:latest
ports:
- 9000:9000
env:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
options: server /data

weaviate:
image: semitechnologies/weaviate:latest
ports:
- 8080:8080

steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: '3.12'

- name: Install dependencies
run: |
pip install -r app/requirements.txt
pip install httpx pytest pytest-asyncio
- name: Run tests
run: pytest /app/tests/test_api.py
3 changes: 3 additions & 0 deletions minio/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ done
mc alias set myminio http://localhost:9000 minio minio123
mc mb myminio/weaviate-bucket
mc mb myminio/langchain-bucket
mc mb myminio/cda-datasets
mc mb myminio/python-functions
mc mb myminio/testtesttest

# Additional setup commands can go here

Expand Down

0 comments on commit b969737

Please sign in to comment.