From 5fce0430c1a35349cf25c1901494eda36d8d70c7 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Tue, 9 Apr 2024 16:53:45 -0700 Subject: [PATCH] Add speed check. --- .github/workflows/speed-test.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/speed-test.yml diff --git a/.github/workflows/speed-test.yml b/.github/workflows/speed-test.yml new file mode 100644 index 000000000..99ece76a4 --- /dev/null +++ b/.github/workflows/speed-test.yml @@ -0,0 +1,34 @@ +name: Test ComfyUI Windows with Default Workflow 2 +on: + workflow_dispatch: + + +jobs: + speed-test-runner: + strategy: + matrix: + os: [macos, linux] + include: + - os: macos + runner_label: [self-hosted, m2] + - os: linux + runner_label: [self-hosted, Linux, nvidia-tesla-t4] + runs-on: ${{ matrix.runner_label }} + steps: + - name: Install speedtest-cli for Linux + if : matrix.os == 'linux' + run: | + # For Ubuntu/Debian-based systems + sudo apt-get install -y speedtest-cli + + - name: Install speedtest-cli for MacOS + if : matrix.os == 'macos' + run: | + # For macOS + brew install speedtest-cli + + - name: Check network speed + run: | + speedtest-cli + +