From d6f16b00aeadd99b9cb6b2e64fc6ca3db3018b22 Mon Sep 17 00:00:00 2001 From: absurdfarce Date: Wed, 8 May 2024 22:17:29 -0500 Subject: [PATCH 1/2] Trying to fix Appveyor build --- appveyor/run_test.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/appveyor/run_test.ps1 b/appveyor/run_test.ps1 index fc95ec7e52..0d22c69c85 100644 --- a/appveyor/run_test.ps1 +++ b/appveyor/run_test.ps1 @@ -15,12 +15,12 @@ $wc = New-Object 'System.Net.WebClient' if($env:ci_type -eq 'unit'){ echo "Running Unit tests" - nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit + pytest -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit $env:EVENT_LOOP_MANAGER="gevent" - nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_geventreactor.py + pytest -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_geventreactor.py $env:EVENT_LOOP_MANAGER="eventlet" - nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_eventletreactor.py + pytest -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_eventletreactor.py $env:EVENT_LOOP_MANAGER="asyncore" echo "uploading unit results" @@ -31,13 +31,13 @@ if($env:ci_type -eq 'unit'){ if($env:ci_type -eq 'standard'){ echo "Running CQLEngine integration tests" - nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=cqlengine_results.xml .\tests\integration\cqlengine + pytest -s -v --with-ignore-docstrings --with-xunit --xunit-file=cqlengine_results.xml .\tests\integration\cqlengine $cqlengine_tests_result = $lastexitcode $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\cqlengine_results.xml)) echo "uploading CQLEngine test results" echo "Running standard integration tests" - nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml .\tests\integration\standard + pytest -s -v --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml .\tests\integration\standard $integration_tests_result = $lastexitcode $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\standard_results.xml)) echo "uploading standard integration test results" From 17b4f90b75414c54f27a857c0f41836c5d1482b0 Mon Sep 17 00:00:00 2001 From: absurdfarce Date: Wed, 8 May 2024 23:21:56 -0500 Subject: [PATCH 2/2] Okay, let's try a pip install of test deps directly in run_test --- appveyor/run_test.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appveyor/run_test.ps1 b/appveyor/run_test.ps1 index 0d22c69c85..4c8900f497 100644 --- a/appveyor/run_test.ps1 +++ b/appveyor/run_test.ps1 @@ -11,6 +11,9 @@ echo $env:ci_type python --version python -c "import platform; print(platform.architecture())" +pip install -r test-requirements.txt +pip install nose-ignore-docstring + $wc = New-Object 'System.Net.WebClient' if($env:ci_type -eq 'unit'){