diff --git a/.github/workflows/measure-coverage.yml b/.github/workflows/measure-coverage.yml index ad1ea3a..c8c0c9c 100644 --- a/.github/workflows/measure-coverage.yml +++ b/.github/workflows/measure-coverage.yml @@ -23,7 +23,9 @@ jobs: python -m pip install --upgrade pip pip install -e .[advanced] - name: Install pytest other dependencies - run: pip install pytest pytest-rerunfailures pytest-xdist pytest-cov setuptools osmnx requests neatnet geopandas shapely + run: | + # Install testing dependencies with compatible versions to avoid serialization issues + pip install "pytest>=7.4.0,<8.0.0" "pytest-xdist>=3.3.0,<4.0.0" "pytest-rerunfailures>=11.1,<12.0" pytest-cov setuptools osmnx requests neatnet geopandas shapely - name: Run verifications with pytest run: pytest -n auto tests/test_verification_straight_road.py tests/test_verification_route_choice.py tests/test_verification_node.py tests/test_verification_exceptional.py tests/test_verification_sioux_falls.py tests/test_verification_multilane.py tests/test_verification_taxi.py tests/test_verification_dta_solvers.py tests/test_other_functions.py tests/test_optional_functions_python313.py --durations=0 -v --cov=uxsim --cov-report=xml --cov-config=.github/.coveragerc - name: Upload coverage reports to Codecov diff --git a/.github/workflows/run-examples.yml b/.github/workflows/run-examples.yml index 9165ea6..991fcd3 100644 --- a/.github/workflows/run-examples.yml +++ b/.github/workflows/run-examples.yml @@ -24,6 +24,8 @@ jobs: python -m pip install --upgrade pip pip install . - name: Install pytest other dependencies - run: pip install pytest pytest-xdist setuptools gymnasium torch osmnx deap streamlit + run: | + # Install testing dependencies with compatible versions to avoid serialization issues + pip install "pytest>=7.4.0,<8.0.0" "pytest-xdist>=3.3.0,<4.0.0" "pytest-rerunfailures>=11.1,<12.0" setuptools gymnasium torch osmnx deap streamlit - name: Run examples with pytest run: pytest -n auto tests/test_examples.py --durations=0 -v \ No newline at end of file diff --git a/.github/workflows/test-functions-python313.yml b/.github/workflows/test-functions-python313.yml index 3a95426..3182162 100644 --- a/.github/workflows/test-functions-python313.yml +++ b/.github/workflows/test-functions-python313.yml @@ -21,7 +21,9 @@ jobs: python -m pip install --upgrade pip pip install .[advanced] - name: Install pytest other dependencies - run: pip install pytest pytest-rerunfailures pytest-xdist setuptools requests + run: | + # Install testing dependencies with compatible versions to avoid serialization issues + pip install "pytest>=7.4.0,<8.0.0" "pytest-xdist>=3.3.0,<4.0.0" "pytest-rerunfailures>=11.1,<12.0" setuptools requests - name: Run tests with pytest run: pytest -n auto tests/test_optional_functions_python313.py --durations=0 -v diff --git a/.github/workflows/test-functions.yml b/.github/workflows/test-functions.yml index c9e22de..3d5c452 100644 --- a/.github/workflows/test-functions.yml +++ b/.github/workflows/test-functions.yml @@ -21,7 +21,9 @@ jobs: python -m pip install --upgrade pip pip install . - name: Install pytest other dependencies - run: pip install pytest pytest-rerunfailures pytest-xdist setuptools osmnx requests + run: | + # Install testing dependencies with compatible versions to avoid serialization issues + pip install "pytest>=7.4.0,<8.0.0" "pytest-xdist>=3.3.0,<4.0.0" "pytest-rerunfailures>=11.1,<12.0" setuptools osmnx requests - name: Run tests with pytest run: pytest -n auto tests/test_other_functions.py --durations=0 -v diff --git a/.github/workflows/test-pip.yml b/.github/workflows/test-pip.yml index ff5026a..71d3685 100644 --- a/.github/workflows/test-pip.yml +++ b/.github/workflows/test-pip.yml @@ -24,6 +24,8 @@ jobs: python -m pip install --upgrade pip pip install uxsim - name: Install pytest other dependencies - run: pip install pytest pytest-rerunfailures pytest-xdist setuptools + run: | + # Install testing dependencies with compatible versions to avoid serialization issues + pip install "pytest>=7.4.0,<8.0.0" "pytest-xdist>=3.3.0,<4.0.0" "pytest-rerunfailures>=11.1,<12.0" setuptools - name: Run tests with pytest run: pytest -n auto tests/test_verification_sioux_falls.py --durations=0 -v diff --git a/.github/workflows/verify-module.yml b/.github/workflows/verify-module.yml index 59b438c..56e3322 100644 --- a/.github/workflows/verify-module.yml +++ b/.github/workflows/verify-module.yml @@ -21,6 +21,8 @@ jobs: python -m pip install --upgrade pip pip install . - name: Install pytest other dependencies - run: pip install pytest pytest-rerunfailures pytest-xdist setuptools + run: | + # Install testing dependencies with compatible versions to avoid serialization issues + pip install "pytest>=7.4.0,<8.0.0" "pytest-xdist>=3.3.0,<4.0.0" "pytest-rerunfailures>=11.1,<12.0" setuptools - name: Run verifications with pytest run: pytest -n auto tests/test_verification_straight_road.py tests/test_verification_route_choice.py tests/test_verification_node.py tests/test_verification_exceptional.py tests/test_verification_sioux_falls.py tests/test_verification_multilane.py tests/test_verification_taxi.py tests/test_verification_dta_solvers.py --durations=0 -v \ No newline at end of file