From 9c0a4ece4e6c6519afd9c581d8f2482fd5d573e9 Mon Sep 17 00:00:00 2001 From: Tyler Gu Date: Tue, 15 Aug 2023 10:03:44 +0800 Subject: [PATCH] Add gh action to run bug reproduction Signed-off-by: Tyler Gu --- .github/workflows/e2e-test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/e2e-test.yml diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml new file mode 100644 index 0000000000..a1800c8cf7 --- /dev/null +++ b/.github/workflows/e2e-test.yml @@ -0,0 +1,26 @@ +name: End-to-End Test +on: [push] +jobs: + bug_reproduction: + timeout-minutes: 1440 + runs-on: [self-hosted, Linux, X64] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.20.5' + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.8' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + make + - name: Create profile dir with 777 mode + run: | + mkdir -m 777 -p profile/data + - name: Run bug reproduction + run: | + pytest -m "local" \ No newline at end of file