Skip to content

Commit

Permalink
refactor workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Nov 29, 2023
1 parent 2b98f3e commit 8e58f98
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 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'
- 'chroma/**'
- '.github/workflows/chroma.yml'

defaults:
run:
working-directory: document_stores/chroma
working-directory: 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"
- "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: elasticsearch
if: matrix.python-version == '3.9'
run: hatch run lint:all

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

- name: Run tests
working-directory: document_stores/elasticsearch
working-directory: 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'
- '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: instructor-embedders

- name: Install instructor-embedders
run: |
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: unstructured / fileconverter

on:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- "components/converters/unstructured_fileconverter/**"
- ".github/workflows/components_unstructured_fileconverter.yml"
- "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: unstructured/fileconverter
if: matrix.python-version == '3.9'
run: hatch run lint:all

- name: Run tests
working-directory: components/converters/unstructured_fileconverter
working-directory: unstructured/fileconverter
run: hatch run cov
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8e58f98

Please sign in to comment.