Skip to content

Commit

Permalink
change code layout
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Feb 16, 2023
1 parent 7ec1d17 commit 78b70e3
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/stores_mongodb_document_store.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test / MongoDBDocumentStore

on:
push:
paths:
- 'stores/mongodb-documentstore/**'
- '.github/workflows/stores_mongodb_document_store.yml'

jobs:
test:
runs-on: ubuntu-latest
container: deepset/haystack:base-cpu-main

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install MongoDBDocumentStore
run: |
pip install -e stores/mongodb-documentstore[dev]
- name: Run tests
run: |
pytest stores/mongodb-documentstore
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,26 @@ dependencies = [
]
dynamic = ["version"]

[project.optional-dependencies]
dev = [
"farm-haystack[dev]>1, <2",
]

[project.urls]
Documentation = "https://github.com/unknown/mongodb-documentstore#readme"
Issues = "https://github.com/unknown/mongodb-documentstore/issues"
Source = "https://github.com/unknown/mongodb-documentstore"

[tool.hatch.version]
path = "src/mongodb_documentstore/__about__.py"
path = "mongodb_documentstore/__about__.py"

[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-cov",
]
[tool.hatch.envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src/mongodb_documentstore --cov=tests"
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=mongodb_documentstore --cov=tests"
no-cov = "cov --no-cov"

[[tool.hatch.envs.test.matrix]]
Expand All @@ -53,7 +58,7 @@ python = ["37", "38", "39", "310", "311"]
branch = true
parallel = true
omit = [
"src/mongodb_documentstore/__about__.py",
"mongodb_documentstore/__about__.py",
]

[tool.coverage.report]
Expand Down

0 comments on commit 78b70e3

Please sign in to comment.