Spaces:
Sleeping
Sleeping
rmm
commited on
Commit
·
ef0cf0b
1
Parent(s):
0de1f63
CI: reorganised tests so can run most without selenium installation
Browse files- even to run the filters on marks, you have to have the packages installed
- a subdir can be ignored more simply
.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 |
-
pytest -m "not visual" --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 |
|
|
|
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 -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,4 +33,4 @@ jobs:
|
|
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
|
|
|
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
|
tests/{requirements_visual.txt → visual_selenium/requirements_visual.txt}
RENAMED
File without changes
|
tests/{test_visual_main.py → visual_selenium/test_visual_main.py}
RENAMED
File without changes
|