Spaces:
Sleeping
Sleeping
rmm
commited on
Commit
·
77bbd21
1
Parent(s):
d5d68f4
CI: removed the debug flag for pytest, now testing in normal mode
Browse files
.github/workflows/python-pycov-onPR.yml
CHANGED
@@ -27,7 +27,7 @@ jobs:
|
|
27 |
# note this will run all non-visual tests, including the slow end2end ones
|
28 |
# - this action is only on PR; the slow ones are skipped on push.
|
29 |
run: |
|
30 |
-
|
31 |
echo "working dir:" && pwd
|
32 |
echo "files in cwd:" && ls -ltr
|
33 |
|
|
|
27 |
# note this will run all non-visual tests, including the slow end2end ones
|
28 |
# - this action is only on PR; the slow ones are skipped on push.
|
29 |
run: |
|
30 |
+
pytest -s -m "not visual" --ignore=tests/visual_selenium --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=src tests/ | tee pytest-coverage.txt
|
31 |
echo "working dir:" && pwd
|
32 |
echo "files in cwd:" && ls -ltr
|
33 |
|
.github/workflows/python-pytest.yml
CHANGED
@@ -33,7 +33,5 @@ jobs:
|
|
33 |
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
34 |
- name: Run quick tests with pytest
|
35 |
run: |
|
36 |
-
|
37 |
|
38 |
-
# first pass: the visual tests that are looking for metadata to be populated already pass with this debug flag.
|
39 |
-
# todo: expand tests to enter the metadata, which will allow progress through the phases.
|
|
|
33 |
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
34 |
- name: Run quick tests with pytest
|
35 |
run: |
|
36 |
+
pytest -m "not slow and not visual" --strict-markers --ignore=tests/visual_selenium
|
37 |
|
|
|
|
.github/workflows/python-visualtests.yml
CHANGED
@@ -50,6 +50,6 @@ jobs:
|
|
50 |
# we use --demo to make it slow enough (selenium doesn't wait long enough
|
51 |
# otherwise, not one step it consistently fails at.)
|
52 |
run: |
|
53 |
-
|
54 |
|
55 |
# DEBUG_AUTOPOPULATE_METADATA=True streamlit run src/main.py
|
|
|
50 |
# we use --demo to make it slow enough (selenium doesn't wait long enough
|
51 |
# otherwise, not one step it consistently fails at.)
|
52 |
run: |
|
53 |
+
pytest -m "visual" --strict-markers tests/visual_selenium/ -s --demo
|
54 |
|
55 |
# DEBUG_AUTOPOPULATE_METADATA=True streamlit run src/main.py
|