Skip to content

Commit

Permalink
feat: Implement retry workflow in runers
Browse files Browse the repository at this point in the history
  • Loading branch information
r-leyshon committed Jul 9, 2024
1 parent 482359f commit 6fbf874
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 6 additions & 3 deletions .github/workflows/python-package-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 8 additions & 4 deletions .github/workflows/python-package-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/python-package-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6fbf874

Please sign in to comment.