Skip to content

Commit

Permalink
push 時の build で e2e test も実行する
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Sep 18, 2024
1 parent 01d4068 commit 133feac
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ on:
paths-ignore:
- "examples/**"
- "**.md"
schedule:
# UTC の 01:00 は JST だと 10:00 。
# 1-5 で 月曜日から金曜日
- cron: "0 1 * * 1-5"
# schedule:
# # UTC の 01:00 は JST だと 10:00 。
# # 1-5 で 月曜日から金曜日
# - cron: "0 1 * * 1-5"

env:
TEST_SIGNALING_URLS: ${{ secrets.TEST_SIGNALING_URLS }}
TEST_CHANNEL_ID_PREFIX: ${{ secrets.TEST_CHANNEL_ID_PREFIX }}
TEST_SECRET_KEY: ${{ secrets.TEST_SECRET_KEY }}

jobs:
# まず pyi を生成する
Expand Down Expand Up @@ -92,6 +97,28 @@ jobs:
uv run python -m build
if: ${{ matrix.platform.os == 'ubuntu' }}
# Ubuntu 向けに E2E テストを実行する
- name: Download openh264
run: |
curl -LO http://ciscobinary.openh264.org/libopenh264-2.4.1-linux64.7.so.bz2
bzip2 -d libopenh264-2.4.1-linux64.7.so.bz2
mv libopenh264-2.4.1-linux64.7.so libopenh264.so
echo "OPENH264_PATH=$(pwd)/libopenh264.so" >> $GITHUB_ENV
if: ${{ matrix.platform.os == 'ubuntu' }}
- run: |
uv python pin ${{ matrix.python_version }}
uv sync
uv run python run.py ${{ matrix.platform.target }}
uv run pytest tests/test_openh264.py -s
uv run pytest tests/test_sendonly_recvonly.py -s
uv run pytest tests/test_simulcast.py -s
uv run pytest tests/test_signaling_message.py -s
uv run pytest tests/test_re_offer_re_answer_sdp.py -s
uv run pytest tests/test_messaging.py -s
uv run pytest tests/test_ca_cert.py -s
uv run pytest tests/test_vad.py -s
if: ${{ matrix.platform.os == 'ubuntu' && matrix.python_version == '3.10' }}
# macOS 向け
- run: |
uv run python run.py ${{ matrix.platform.target }}
Expand Down

0 comments on commit 133feac

Please sign in to comment.