Skip to content

Commit 1be9652

Browse files
authored
ci(python): run all other pytest before running flaky python/gossip_test.py
* Update ci.yml Test python/gossip_test.py often times out so run all other pytests first ``` pytest --ignore python/gossip_test.py pytest -vvv python/gossip_test.py ``` https://docs.pytest.org/en/stable/example/pythoncollection.html * virtualenv
1 parent 380d9a3 commit 1be9652

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1212
cancel-in-progress: true
1313

14-
1514
jobs:
1615
build_and_test_rust:
1716
runs-on: ${{ matrix.runner }}
@@ -87,15 +86,17 @@ jobs:
8786
- uses: actions/setup-python@v5
8887
with:
8988
python-version: 3.12
90-
- name: Install Deps
89+
- name: Install virtualenv
9190
run: pip install virtualenv
9291
- name: Python tests
9392
run: |
94-
virtualenv venv && \
95-
source venv/bin/activate && \
93+
virtualenv venv
94+
source venv/bin/activate
9695
pip install setuptools pytest pytest-asyncio "maturin[patchelf]" uniffi-bindgen
97-
maturin develop && \
98-
python -m pytest -vvv
96+
maturin develop
97+
# Test python/gossip_test.py often times out so run all other pytests first
98+
pytest --ignore python/gossip_test.py
99+
pytest -vvv python/gossip_test.py
99100
100101
build_and_test_swift:
101102
name: Swift - Build and test

0 commit comments

Comments
 (0)