Skip to content

Commit

Permalink
e2e をルートでできるようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Aug 15, 2024
1 parent 9ee4903 commit 0581f43
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/examples-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ jobs:
python_version: ["3.10", "3.11", "3.12"]
os: ["ubuntu-22.04", "ubuntu-24.04"]
runs-on: ${{ matrix.os}}
defaults:
run:
working-directory: ./examples
timeout-minutes: 20
env:
TEST_SIGNALING_URLS: ${{ secrets.TEST_SIGNALING_URLS }}
Expand All @@ -37,10 +34,10 @@ jobs:
- uses: eifinger/setup-rye@v4
- run: rye pin ${{ matrix.python_version }}
- run: rye sync
- run: rye run pytest tests/test_openh264.py -s
- run: rye run pytest tests/test_messaging.py -s
- run: rye run pytest tests/test_sendonly_recvonly.py -s
- run: rye run pytest tests/test_vad.py -s
- run: rye run pytest examples/tests/test_openh264.py -s
- run: rye run pytest examples/tests/test_messaging.py -s
- run: rye run pytest examples/tests/test_sendonly_recvonly.py -s
- run: rye run pytest examples/tests/test_vad.py -s

e2e_macos_test:
strategy:
Expand All @@ -49,9 +46,6 @@ jobs:
# macos-13 は test_macos.py が上手くテストが動かないのでスキップ
os: ["macos-14"]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./examples
timeout-minutes: 20
env:
TEST_SIGNALING_URLS: ${{ secrets.TEST_SIGNALING_URLS }}
Expand All @@ -68,20 +62,17 @@ jobs:
- uses: eifinger/setup-rye@v4
- run: rye pin ${{ matrix.python_version }}
- run: rye sync
- run: rye run pytest tests/test_macos.py -s
- run: rye run pytest tests/test_openh264.py -s
- run: rye run pytest tests/test_messaging.py -s
- run: rye run pytest tests/test_sendonly_recvonly.py -s
- run: rye run pytest tests/test_vad.py -s
- run: rye run pytest examples/tests/test_macos.py -s
- run: rye run pytest examples/tests/test_openh264.py -s
- run: rye run pytest examples/tests/test_messaging.py -s
- run: rye run pytest examples/tests/test_sendonly_recvonly.py -s
- run: rye run pytest examples/tests/test_vad.py -s

e2e_windows_test:
strategy:
matrix:
python_version: ["3.10", "3.11", "3.12"]
runs-on: windows-2022
defaults:
run:
working-directory: ./examples
timeout-minutes: 20
env:
# Python を強制的に UTF-8 で利用するおまじない
Expand All @@ -103,9 +94,9 @@ jobs:
- uses: eifinger/setup-rye@v4
- run: rye pin ${{ matrix.python_version }}
- run: rye sync
- run: rye run pytest tests/test_messaging.py -s
- run: rye run pytest tests/test_sendonly_recvonly.py -s
- run: rye run pytest tests/test_vad.py -s
- run: rye run pytest examples/tests/test_messaging.py -s
- run: rye run pytest examples/tests/test_sendonly_recvonly.py -s
- run: rye run pytest examples/tests/test_vad.py -s

slack_notify_succeeded:
needs: [e2e_ubuntu_test, e2e_macos_test, e2e_windows_test]
Expand Down

0 comments on commit 0581f43

Please sign in to comment.