Skip to content

Commit

Permalink
rye pin 3.11 / 3.12 でテストを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Jan 25, 2024
1 parent f04931c commit e43610f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ jobs:
- run: |
sudo apt-get update
sudo apt-get -y install libva-dev libdrm-dev
# Python 3.12 を利用するようにする
- run: rye pin 3.11
- run: rye sync
- run: rye run python run.py
- run: rye run python -m pytest tests/test_recvonly.py -s
- run: rye run python -m pytest tests/test_messaging.py -s
- run: rye pin 3.12
- run: rye sync
- run: rye run python run.py
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8.16
3.11.7
2 changes: 0 additions & 2 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
-e file:.
auditwheel==5.4.0
build==0.10.0
exceptiongroup==1.2.0
iniconfig==2.0.0
nanobind==1.8.0
packaging==23.2
Expand All @@ -19,7 +18,6 @@ pyelftools==0.30
pyproject-hooks==1.0.0
pytest==7.3.2
ruff==0.1.14
tomli==2.0.1
wheel==0.40.0
# The following packages are considered to be unsafe in a requirements file:
setuptools==69.0.3
9 changes: 3 additions & 6 deletions tests/test_messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,11 @@ def send_message():
video=False,
)

connection.on_data_channel = on_data_channel

# 次の行をコメントアウトすると SIGSEGV は発生しない
connection.on_message = on_message

connection.connect()

time.sleep(3)

connection.send_data_channel("#spam", "ham")
connection.send_data_channel("#spam", b"Hello, world!")

connection.disconnect()

Expand All @@ -59,4 +54,6 @@ def test_messaging_direction_recvonly():

send_message()

time.sleep(3)

connection.disconnect()

0 comments on commit e43610f

Please sign in to comment.