Skip to content

Commit

Permalink
mark all linker tests and avoid running them on pytestpods while they…
Browse files Browse the repository at this point in the history
… dont have access to linker models
  • Loading branch information
nsantacruz committed May 20, 2022
1 parent d4d60f2 commit bc1b7e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/ci/pyTestPod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
image: "${WEB_IMAGE_NAME}:${WEB_IMAGE_TAG}"
imagePullPolicy: Always
command: ["bash"]
args: ["-c", "pip3 install pytest-django; pytest -v -m \"not deep and not failing\" ./sefaria; echo $? > /dev/stdout; exit 0;"]
args: ["-c", "pip3 install pytest-django; pytest -v -m \"not deep and not failing and not linker\" ./sefaria; echo $? > /dev/stdout; exit 0;"]
env:
# WEB_CONCURRENCY is used for determining the number of server workers
- name: GOOGLE_APPLICATION_CREDENTIALS
Expand Down
2 changes: 1 addition & 1 deletion sefaria/model/tests/ref_part_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from spacy.language import Language
from sefaria.model import schema


pytestmark = pytest.mark.linker
ref_resolver = library.get_ref_resolver()


Expand Down
1 change: 1 addition & 0 deletions sefaria/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
markers =
deep: marks tests as slow
failing: marks tests as known no passing
linker: marks all tests relating to linker v3. linker tests require access to linker ML models so these tests should de deslected in environments that dont have access to these models.
DJANGO_SETTINGS_MODULE = sefaria.settings

python_files =
Expand Down

0 comments on commit bc1b7e7

Please sign in to comment.