Skip to content

Commit

Permalink
Rerun failing tests (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
qqaatw committed Dec 31, 2023
1 parent 6ccba71 commit e53cff1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
TEST_DEVICE_AC: ${{ secrets.TEST_DEVICE_AC }}
TEST_DEVICE_DH: ${{ secrets.TEST_DEVICE_DH }}
run: |
python -m pytest ./tests --cov=./JciHitachi --cov-report xml
python -m pytest ./tests --cov=./JciHitachi --cov-report xml --reruns 2
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v2
2 changes: 1 addition & 1 deletion .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
TEST_DEVICE_AC: ${{ secrets.TEST_DEVICE_AC }}
TEST_DEVICE_DH: ${{ secrets.TEST_DEVICE_DH }}
run: |
python -m pytest ./tests
python -m pytest --reruns 2 ./tests
deploy:
needs: pytest
environment: Deploy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
TEST_DEVICE_AC: ${{ secrets.TEST_DEVICE_AC }}
TEST_DEVICE_DH: ${{ secrets.TEST_DEVICE_DH }}
run: |
python -m pytest tests/test_integration.py::TestAWSAPILogin::test_api
python -m pytest --reruns 2 tests/test_integration.py::TestAWSAPILogin::test_api
3 changes: 2 additions & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pre-commit
pytest>=6.2
pytest-cov
pytest-cov
pytest-rerunfailures
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"pre-commit",
"pytest>=6.2",
"pytest-cov",
"pytest-rerunfailures",
]


Expand Down

0 comments on commit e53cff1

Please sign in to comment.