テストを class 化して、読みやすくする #22
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_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: sksat/setup-rye@v0.12.0 | |
- uses: actions/checkout@v4 | |
- run: | | |
sudo apt-get update | |
sudo apt-get -y install libva-dev libdrm-dev | |
- run: rye pin ${{ matrix.python_version }} | |
- 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 |