Skip to content

Commit

Permalink
switch to using uv
Browse files Browse the repository at this point in the history
  • Loading branch information
sphuber committed Oct 26, 2024
1 parent 387c68e commit 3044d55
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ jobs:
sudo apt install libev-dev libevent-dev
sudo apt install gcc make libffi-dev pkg-config zlib1g-dev libbz2-dev libsqlite3-dev libncurses5-dev libexpat1-dev libssl-dev libgdbm-dev tk-dev libgc-dev python-cffi liblzma-dev libncursesw5-dev
sudo ldconfig
- name: Install test dependencies
run: pip install tox coveralls
- name: Install uv
run: pip install uv

- name: Install Python package and test dependencies
run: uv pip install .[test] && uv pip freeze

- name: Run test suite
run: tox -v -e py
run: pytest


multi-os:
Expand All @@ -56,11 +61,13 @@ jobs:
with:
python-version: '3.8'

- name: Install test dependencies
run: |
pip install tox coveralls
- name: Install uv
run: pip install uv

- name: Install Python package and test dependencies
run: uv pip install .[test] && uv pip freeze

- name: Run test suite
shell: bash -l {0}
run: tox -v -e py
run: pytest
continue-on-error: ${{ matrix.skip-tests }}
5 changes: 3 additions & 2 deletions tests/test_stdin_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import tornado
import time
import socket
import subprocess

from tests.support import TestCircus, TimeoutException
from tests.support import skipIf, IS_WINDOWS
Expand All @@ -18,7 +19,7 @@ def run_process(test_file):
return 1


@tornado.testing.gen_test
@tornado.gen.coroutine
def read_from_stream(stream, timeout=5):
start = time.time()
while time.time() - start < timeout:
Expand Down Expand Up @@ -63,7 +64,7 @@ def test_stdin_socket_missing_raises(self):
try:
# expecting exception for no such socket
yield self.start_arbiter(stdin_socket='test')
except Exception:
except subprocess.SubprocessError:
raised = True
self.assertTrue(raised)

Expand Down

0 comments on commit 3044d55

Please sign in to comment.