Skip to content

Commit

Permalink
Reorganize repository (#62)
Browse files Browse the repository at this point in the history
* move dirs

* refactor workflows

* fix error

* workflows

* unstructured
  • Loading branch information
anakin87 authored Nov 29, 2023
1 parent 5ec0882 commit 1591c01
Show file tree
Hide file tree
Showing 113 changed files with 25 additions and 55 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# This workflow comes from https://github.com/ofek/hatch-mypyc
# https://github.com/ofek/hatch-mypyc/blob/5a198c0ba8660494d02716cfc9d79ce4adfb1442/.github/workflows/test.yml
name: Test / Document Stores / chroma
name: Test / chroma

on:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- 'document_stores/chroma/**'
- '.github/workflows/document_stores_chroma.yml'
- 'integrations/chroma/**'
- '.github/workflows/chroma.yml'

defaults:
run:
working-directory: document_stores/chroma
working-directory: integrations/chroma

concurrency:
group: document_stores_chroma-${{ github.head_ref }}
group: chroma-${{ github.head_ref }}
cancel-in-progress: true

env:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# This workflow comes from https://github.com/ofek/hatch-mypyc
# https://github.com/ofek/hatch-mypyc/blob/5a198c0ba8660494d02716cfc9d79ce4adfb1442/.github/workflows/test.yml
name: Test / Document Stores / elasticsearch
name: Test / elasticsearch

on:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- "document_stores/elasticsearch/**"
- ".github/workflows/document_stores_elasticsearch.yml"
- "integrations/elasticsearch/**"
- ".github/workflows/elasticsearch.yml"

concurrency:
group: document_stores_elasticsearch-${{ github.head_ref }}
group: elasticsearch-${{ github.head_ref }}
cancel-in-progress: true

env:
Expand Down Expand Up @@ -40,14 +40,14 @@ jobs:
run: pip install --upgrade hatch

- name: Lint
working-directory: document_stores/elasticsearch
working-directory: integrations/elasticsearch
if: matrix.python-version == '3.9'
run: hatch run lint:all

- name: Run ElasticSearch container
working-directory: document_stores/elasticsearch
working-directory: integrations/elasticsearch
run: docker-compose up -d

- name: Run tests
working-directory: document_stores/elasticsearch
working-directory: integrations/elasticsearch
run: hatch run cov
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Test / Components / instructor-embedders
name: Test / instructor-embedders

on:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- 'components/embedders/instructor-embedders/**'
- '.github/workflows/components_instructor_embedders.yml'
- 'integrations/instructor-embedders/**'
- '.github/workflows/instructor_embedders.yml'

defaults:
run:
working-directory: components/embedders/instructor-embedders
working-directory: instructor-embedders

jobs:
test:
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Ruff
uses: chartboost/ruff-action@v1
with:
src: components/embedders/instructor-embedders
src: integrations/instructor-embedders

- name: Install instructor-embedders
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nodes_text2speech.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
- cron: "0 0 * * *"
pull_request:
paths:
- 'nodes/text2speech/**'
- 'integrations/nodes/text2speech/**'
- '.github/workflows/nodes_text2speech.yml'

defaults:
run:
working-directory: nodes/text2speech
working-directory: integrations/nodes/text2speech

jobs:
test:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# This workflow comes from https://github.com/ofek/hatch-mypyc
# https://github.com/ofek/hatch-mypyc/blob/5a198c0ba8660494d02716cfc9d79ce4adfb1442/.github/workflows/test.yml
name: Test / Components / unstructured-fileconverter
name: Test / unstructured / fileconverter

on:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- "components/converters/unstructured_fileconverter/**"
- ".github/workflows/components_unstructured_fileconverter.yml"
- "integrations/unstructured/fileconverter/**"
- ".github/workflows/unstructured_fileconverter.yml"

concurrency:
group: components_unstructured_fileconverter-${{ github.head_ref }}
group: unstructured_fileconverter-${{ github.head_ref }}
cancel-in-progress: true

env:
Expand Down Expand Up @@ -50,10 +50,10 @@ jobs:
run: pip install --upgrade hatch

- name: Lint
working-directory: components/converters/unstructured_fileconverter
working-directory: integrations/unstructured/fileconverter
if: matrix.python-version == '3.9'
run: hatch run lint:all

- name: Run tests
working-directory: components/converters/unstructured_fileconverter
working-directory: integrations/unstructured/fileconverter
run: hatch run cov
6 changes: 0 additions & 6 deletions components/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions document_stores/hatch.toml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions nodes/hatch.toml

This file was deleted.

0 comments on commit 1591c01

Please sign in to comment.