diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 2ed0323a..ba44e5cb 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -47,6 +47,9 @@ jobs: brew install --build-from-source ./osmosis.rb brew info osmosis shell: sh - - name: Run Integration Tests Only - run: | - pytest -m runinteg --runinteg --ignore tests/analyse_network --ignore tests/test_analyse_network.py + - name: Run Integration Tests with retry + uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # SHA for v3.0.0 + with: + timeout_minutes: 10 + max_attempts: 3 + command: pytest -m runinteg --runinteg --ignore tests/analyse_network --ignore tests/test_analyse_network.py diff --git a/.github/workflows/python-package-linux.yml b/.github/workflows/python-package-linux.yml index cc776b0d..a9329908 100644 --- a/.github/workflows/python-package-linux.yml +++ b/.github/workflows/python-package-linux.yml @@ -44,6 +44,9 @@ jobs: sudo apt update sudo apt install -y libgeos-dev shell: sh - - name: Test with pytest - run: | - pytest + - name: Test with retry + uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # SHA for v3.0.0 + with: + timeout_minutes: 10 + max_attempts: 3 + command: pytest diff --git a/.github/workflows/python-package-mac.yml b/.github/workflows/python-package-mac.yml index f470fe50..03259b2d 100644 --- a/.github/workflows/python-package-mac.yml +++ b/.github/workflows/python-package-mac.yml @@ -48,10 +48,14 @@ jobs: run: | pre-commit install pre-commit run --all-files - - name: Run Tests and Generate Coverage Report - run: | - coverage run -m pytest - coverage xml + - name: Base tests with retry + uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # SHA for v3.0.0 + with: + timeout_minutes: 10 + max_attempts: 3 + command: | + coverage run -m pytest + coverage xml - name: Upload coverage reports to Codecov uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # SHA for v3.1.6 with: diff --git a/.github/workflows/python-package-windows.yml b/.github/workflows/python-package-windows.yml index c75d0eff..d683c600 100644 --- a/.github/workflows/python-package-windows.yml +++ b/.github/workflows/python-package-windows.yml @@ -36,6 +36,9 @@ jobs: run: | python -m pip install --upgrade pip pip install '.[test]' - - name: Run 'base' Tests - run: | - pytest --ignore tests/osm/ --ignore tests/analyse_network --ignore tests/test_analyse_network.py + - name: Base tests with retry + uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # SHA for v3.0.0 + with: + timeout_minutes: 10 + max_attempts: 3 + command: pytest --ignore tests/osm/ --ignore tests/analyse_network --ignore tests/test_analyse_network.py