Skip to content

Commit

Permalink
CI/CD: Move flaky testing to CI only.
Browse files Browse the repository at this point in the history
Also disable flaky reporting which doesn't tell us anything we don't
already know - that *both attempts failed*.
  • Loading branch information
bwoodsend committed Apr 1, 2021
1 parent 69ee38d commit 35103b3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/macos.yml
Expand Up @@ -60,4 +60,5 @@ jobs:
- name: Run tests
run: |
pytest -n 3 --maxfail 3 --durations 10 tests/unit tests/functional --ignore tests/functional/test_libraries.py
pytest -n 3 --maxfail 3 --durations 10 tests/unit tests/functional --ignore tests/functional/test_libraries.py \
--force-flaky --no-flaky-report
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -50,7 +50,7 @@ jobs:
# Print the 10 longest tests; see
# https://docs.pytest.org/en/latest/usage.html#profiling-test-execution-duration
- >
pytest -n 3 --maxfail 3 --durations 10
pytest -n 3 --maxfail 3 --durations 10 --force-flaky --no-flaky-report
tests/unit tests/functional
--ignore tests/functional/test_libraries.py
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -187,7 +187,7 @@ test_script:
# statement.
- if "%TEST_PART%" == "Libraries" (
set PYTEST_CMD=%PYTEST% -k "test_noarchive[onefile]" ^&^&
%PYTEST% tests/functional/test_libraries.py
%PYTEST% tests/functional/test_libraries.py --no-flaky-report --force-flaky
-k "not test_noarchive[onefile]" ^&^&
python -m PyInstaller.utils.run_tests -c PyInstaller\utils\pytest.ini
--include_only=pyi_hooksample.
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -156,7 +156,7 @@ filterwarnings =
#
# pytest -k test_name
#
addopts = "-v" "-rsxXfE" "--doctest-glob=" "--force-flaky" "--no-success-flaky-report"
addopts = "-v" "-rsxXfE" "--doctest-glob="

markers =
darwin: only run on macOS
Expand Down

0 comments on commit 35103b3

Please sign in to comment.