Skip to content

Commit

Permalink
[e2e] ubuntu_arm だけにする
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Jan 27, 2025
1 parent 677abcf commit 1466fa6
Showing 1 changed file with 106 additions and 106 deletions.
212 changes: 106 additions & 106 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,48 +18,48 @@ env:
OPENH264_VERSION: 2.5.0

jobs:
e2e_test_ubuntu:
strategy:
fail-fast: false
matrix:
python_version: ["3.10", "3.11", "3.12", "3.13"]
os: ["ubuntu-22.04", "ubuntu-24.04"]
runs-on: ${{ matrix.os}}
timeout-minutes: 15
if: >-
${{
contains(github.event.head_commit.message, '[e2e]') ||
contains(github.ref, 'feature/e2e-test') ||
github.event_name == 'workflow_dispatch' ||
github.event_name == 'schedule'
}}
steps:
- uses: actions/checkout@v4
- name: Tailscale
uses: tailscale/github-action@v3
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
# libx11-dev は Ubuntu 24.04 の時に必要になる模様
- run: |
sudo apt-get update
sudo apt-get -y install libva2 libdrm2 libx11-dev portaudio19-dev
- name: Download openh264
run: |
curl -LO http://ciscobinary.openh264.org/libopenh264-${{ env.OPENH264_VERSION }}-linux64.7.so.bz2
bzip2 -d libopenh264-${{ env.OPENH264_VERSION }}-linux64.7.so.bz2
mv libopenh264-${{ env.OPENH264_VERSION }}-linux64.7.so libopenh264.so
echo "OPENH264_PATH=$(pwd)/libopenh264.so" >> $GITHUB_ENV
- uses: astral-sh/setup-uv@v5
with:
enable-cache: false
- run: uv python pin ${{ matrix.python_version }}
- run: uv sync
- run: uv run python run.py ${{ matrix.os }}_x86_64
- run: uv run pytest tests -s
# e2e_test_ubuntu:
# strategy:
# fail-fast: false
# matrix:
# python_version: ["3.10", "3.11", "3.12", "3.13"]
# os: ["ubuntu-22.04", "ubuntu-24.04"]
# runs-on: ${{ matrix.os}}
# timeout-minutes: 15
# if: >-
# ${{
# contains(github.event.head_commit.message, '[e2e]') ||
# contains(github.ref, 'feature/e2e-test') ||
# github.event_name == 'workflow_dispatch' ||
# github.event_name == 'schedule'
# }}
# steps:
# - uses: actions/checkout@v4
# - name: Tailscale
# uses: tailscale/github-action@v3
# with:
# oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
# oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
# tags: tag:ci
# # libx11-dev は Ubuntu 24.04 の時に必要になる模様
# - run: |
# sudo apt-get update
# sudo apt-get -y install libva2 libdrm2 libx11-dev portaudio19-dev
# - name: Download openh264
# run: |
# curl -LO http://ciscobinary.openh264.org/libopenh264-${{ env.OPENH264_VERSION }}-linux64.7.so.bz2
# bzip2 -d libopenh264-${{ env.OPENH264_VERSION }}-linux64.7.so.bz2
# mv libopenh264-${{ env.OPENH264_VERSION }}-linux64.7.so libopenh264.so
# echo "OPENH264_PATH=$(pwd)/libopenh264.so" >> $GITHUB_ENV
# - uses: astral-sh/setup-uv@v5
# with:
# enable-cache: false
# - run: uv python pin ${{ matrix.python_version }}
# - run: uv sync
# - run: uv run python run.py ${{ matrix.os }}_x86_64
# - run: uv run pytest tests -s

e2e_test_ubuntu_arm64:
e2e_test_ubuntu_arm:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -101,72 +101,72 @@ jobs:
- run: uv run pytest tests -s


e2e_test_macos:
strategy:
fail-fast: false
matrix:
python_version: ["3.10", "3.11", "3.12", "3.13"]
# macos-13 は test_macos.py が上手くテストが動かないのでスキップ
os: ["macos-14", "macos-15"]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
if: >-
${{
contains(github.event.head_commit.message, '[e2e]') ||
contains(github.ref, 'feature/e2e-test') ||
github.event_name == 'workflow_dispatch' ||
github.event_name == 'schedule'
}}
steps:
- uses: actions/checkout@v4
- name: Download openh264
run: |
curl -LO http://ciscobinary.openh264.org/libopenh264-${{ env.OPENH264_VERSION }}-mac-arm64.dylib.bz2
bzip2 -d libopenh264-${{ env.OPENH264_VERSION }}-mac-arm64.dylib.bz2
mv libopenh264-${{ env.OPENH264_VERSION }}-mac-arm64.dylib libopenh264.dylib
echo "OPENH264_PATH=$(pwd)/libopenh264.dylib" >> $GITHUB_ENV
- uses: astral-sh/setup-uv@v5
with:
enable-cache: false
- run: uv python pin ${{ matrix.python_version }}
- run: uv sync
- run: uv run python run.py macos_arm64
- run: uv run pytest tests -s
# e2e_test_macos:
# strategy:
# fail-fast: false
# matrix:
# python_version: ["3.10", "3.11", "3.12", "3.13"]
# # macos-13 は test_macos.py が上手くテストが動かないのでスキップ
# os: ["macos-14", "macos-15"]
# runs-on: ${{ matrix.os }}
# timeout-minutes: 15
# if: >-
# ${{
# contains(github.event.head_commit.message, '[e2e]') ||
# contains(github.ref, 'feature/e2e-test') ||
# github.event_name == 'workflow_dispatch' ||
# github.event_name == 'schedule'
# }}
# steps:
# - uses: actions/checkout@v4
# - name: Download openh264
# run: |
# curl -LO http://ciscobinary.openh264.org/libopenh264-${{ env.OPENH264_VERSION }}-mac-arm64.dylib.bz2
# bzip2 -d libopenh264-${{ env.OPENH264_VERSION }}-mac-arm64.dylib.bz2
# mv libopenh264-${{ env.OPENH264_VERSION }}-mac-arm64.dylib libopenh264.dylib
# echo "OPENH264_PATH=$(pwd)/libopenh264.dylib" >> $GITHUB_ENV
# - uses: astral-sh/setup-uv@v5
# with:
# enable-cache: false
# - run: uv python pin ${{ matrix.python_version }}
# - run: uv sync
# - run: uv run python run.py macos_arm64
# - run: uv run pytest tests -s

e2e_test_windows:
strategy:
fail-fast: false
matrix:
python_version: ["3.10", "3.11", "3.12", "3.13"]
runs-on: windows-2022
timeout-minutes: 15
env:
# Python を強制的に UTF-8 で利用するおまじない
PYTHONUTF8: 1
if: >-
${{
contains(github.event.head_commit.message, '[e2e]') ||
contains(github.ref, 'feature/e2e-test') ||
github.event_name == 'workflow_dispatch' ||
github.event_name == 'schedule'
}}
steps:
- uses: actions/checkout@v4
- name: Download openh264
shell: pwsh
run: |
$url = "http://ciscobinary.openh264.org/openh264-${{ env.OPENH264_VERSION }}-win64.dll.bz2"
Invoke-WebRequest -Uri $url -OutFile "openh264-${{ env.OPENH264_VERSION }}-win64.dll.bz2"
7z e openh264-${{ env.OPENH264_VERSION }}-win64.dll.bz2
Rename-Item -Path "openh264-${{ env.OPENH264_VERSION }}-win64.dll" -NewName "libopenh264.dll"
echo "OPENH264_PATH=$PWD\libopenh264.dll" >> $env:GITHUB_ENV
- uses: astral-sh/setup-uv@v5
with:
enable-cache: false
- run: uv python pin ${{ matrix.python_version }}
- run: uv sync
- run: uv run python run.py windows_x86_64
- run: uv run pytest tests -s
# e2e_test_windows:
# strategy:
# fail-fast: false
# matrix:
# python_version: ["3.10", "3.11", "3.12", "3.13"]
# runs-on: windows-2022
# timeout-minutes: 15
# env:
# # Python を強制的に UTF-8 で利用するおまじない
# PYTHONUTF8: 1
# if: >-
# ${{
# contains(github.event.head_commit.message, '[e2e]') ||
# contains(github.ref, 'feature/e2e-test') ||
# github.event_name == 'workflow_dispatch' ||
# github.event_name == 'schedule'
# }}
# steps:
# - uses: actions/checkout@v4
# - name: Download openh264
# shell: pwsh
# run: |
# $url = "http://ciscobinary.openh264.org/openh264-${{ env.OPENH264_VERSION }}-win64.dll.bz2"
# Invoke-WebRequest -Uri $url -OutFile "openh264-${{ env.OPENH264_VERSION }}-win64.dll.bz2"
# 7z e openh264-${{ env.OPENH264_VERSION }}-win64.dll.bz2
# Rename-Item -Path "openh264-${{ env.OPENH264_VERSION }}-win64.dll" -NewName "libopenh264.dll"
# echo "OPENH264_PATH=$PWD\libopenh264.dll" >> $env:GITHUB_ENV
# - uses: astral-sh/setup-uv@v5
# with:
# enable-cache: false
# - run: uv python pin ${{ matrix.python_version }}
# - run: uv sync
# - run: uv run python run.py windows_x86_64
# - run: uv run pytest tests -s

# slack_notify_succeeded:
# needs: [e2e_test_ubuntu, e2e_test_macos, e2e_test_windows]
Expand Down

0 comments on commit 1466fa6

Please sign in to comment.