Skip to content

Commit

Permalink
これでどうだ
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Sep 3, 2024
1 parent 34158fb commit 2a850a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
tar -xzf momo-2023.1.0_ubuntu-22.04_x86_64.tar.gz
mkdir -p _build/ubuntu-22.04_x86_64/release
chmod 755 momo-2023.1.0_ubuntu-22.04_x86_64/momo
mv momo-2023.1.0_ubuntu-22.04_x86_64/momo _build/ubuntu-22.04_x86_64/release/
mv momo-2023.1.0_ubuntu-22.04_x86_64/momo ${{ github.workspace }}/_build/ubuntu-22.04_x86_64/release/
- uses: eifinger/setup-rye@v3
with:
version: 'latest'
- run: rye sync
working-directory: ./test
- run: |
sudo modprobe v4l2loopback devices=1 video_nr=0 exclusive_caps=1 card_label='VCamera'
rye run pytest test_momo.py
rye run pytest test_momo.py -s
working-directory: ./test
2 changes: 2 additions & 0 deletions test/momo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

# プラットフォームに応じたリリースディレクトリの設定
RELEASE_DIR = Path(__file__).resolve().parent.parent / Path("_build/")

if platform.system() == "Darwin":
if platform.machine() == "arm64":
RELEASE_DIR = RELEASE_DIR / "macos_arm64/release/momo"
Expand Down Expand Up @@ -52,6 +53,7 @@ def run_app(self):
self.is_running = False

def start(self):
print(Path(__file__).resolve().parent.parent / Path("_build/"))
if not self.executable.exists():
raise FileNotFoundError(f"Momo executable not found: {self.executable}")

Expand Down

0 comments on commit 2a850a8

Please sign in to comment.