Merge branch 'develop' into feature/test #80
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: e2e-test | |
on: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- "doc/**" | |
- "**.md" | |
jobs: | |
e2e_ubuntu_test: | |
strategy: | |
matrix: | |
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
env: | |
TEST_SIGNALING_URL: ${{ secrets.TEST_SIGNALING_URL }} | |
TEST_SECRET_KEY: ${{ secrets.TEST_SECRET_KEY }} | |
TEST_CHANNEL_ID_PREFIX: ${{ secrets.TEST_CHANNEL_ID_PREFIX }} | |
steps: | |
- uses: eifinger/setup-rye@v2 | |
- uses: actions/checkout@v4 | |
- run: | | |
sudo apt-get update | |
sudo apt-get -y install libva-dev libdrm-dev | |
- 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 | |
working-directory: ./tests | |
- run: rye pin ${{ matrix.python_version }} | |
- run: rye sync | |
- run: rye run python run.py | |
# - run: rye test | |
- run: rye run pytest tests/test_sendonly.py -s | |
- run: rye run pytest tests/test_recvonly.py -s | |
- run: rye run pytest tests/test_messaging.py -s | |
- run: rye run pytest tests/test_openh264.py -s | |
- run: rye run pytest tests/test_switched.py -s | |
- run: rye run pytest tests/test_vad.py -s | |
- name: Slack Notification | |
if: failure() | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_CHANNEL: sora-python-sdk | |
SLACK_COLOR: danger | |
SLACK_TITLE: Failure test | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
e2e_macos_test: | |
strategy: | |
matrix: | |
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
runs-on: macos-14 | |
timeout-minutes: 10 | |
env: | |
TEST_SIGNALING_URL: ${{ secrets.TEST_SIGNALING_URL }} | |
TEST_SECRET_KEY: ${{ secrets.TEST_SECRET_KEY }} | |
TEST_CHANNEL_ID_PREFIX: ${{ secrets.TEST_CHANNEL_ID_PREFIX }} | |
steps: | |
- uses: eifinger/setup-rye@v2 | |
- uses: actions/checkout@v4 | |
- run: rye pin ${{ matrix.python_version }} | |
- run: rye sync | |
- run: rye run python run.py | |
# - run: rye test | |
- run: rye run pytest tests/test_macos_h265.py -s | |
- name: Slack Notification | |
if: failure() | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_CHANNEL: sora-python-sdk | |
SLACK_COLOR: danger | |
SLACK_TITLE: Failure test | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |