Skip to content

Commit

Permalink
some other changes, including the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Jan 16, 2024
1 parent f7f4d0f commit e8e2d08
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +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 / unstructured / fileconverter
name: Test / unstructured

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

defaults:
run:
working-directory: integrations/unstructured

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

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

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

- name: Run tests
working-directory: integrations/unstructured/fileconverter
run: hatch run cov
2 changes: 1 addition & 1 deletion integrations/unstructured/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ source = "vcs"
tag-pattern = 'integrations\/unstructured-v(?P<version>.*)'

[tool.hatch.version.raw-options]
root = "../../.."
root = "../.."
git_describe_command = 'git describe --tags --match="integrations/unstructured-v[0-9]*"'

[tool.hatch.envs.default]
Expand Down
2 changes: 1 addition & 1 deletion integrations/unstructured/tests/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_to_dict(self):
converter_dict = converter.to_dict()

assert converter_dict == {
"type": "unstructured_fileconverter_haystack.fileconverter.UnstructuredFileConverter",
"type": "haystack_integrations.components.converters.unstructured.converter.UnstructuredFileConverter",
"init_parameters": {
"api_url": "https://api.unstructured.io/general/v0/general",
"document_creation_mode": "one-doc-per-file",
Expand Down

0 comments on commit e8e2d08

Please sign in to comment.