From dd3c820f27b0187d945297c0996ab2024dfa2489 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 13 Feb 2025 20:19:08 +0800 Subject: [PATCH] test: daily workflow --- .github/workflows/nomos_daily.yml | 11 +++++++++++ .github/workflows/test.yml | 32 ------------------------------- .github/workflows/test_common.yml | 32 +++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/nomos_daily.yml delete mode 100644 .github/workflows/test.yml create mode 100644 .github/workflows/test_common.yml diff --git a/.github/workflows/nomos_daily.yml b/.github/workflows/nomos_daily.yml new file mode 100644 index 0000000..ba9defe --- /dev/null +++ b/.github/workflows/nomos_daily.yml @@ -0,0 +1,11 @@ +name: Nomos E2E Tests + +on: + schedule: + - cron: '0 4 * * *' + workflow_dispatch: + +jobs: + test-common: + uses: ./.github/workflows/test_common.yml + diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index c4c3815..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Test E2E Data Integrity - -on: - push: - branches: - - test-data-availability-integrity - -jobs: - - tests: - name: tests - runs-on: ubuntu-latest - timeout-minutes: 120 - steps: - - uses: actions/checkout@v4 - - - name: Remove unwanted software - uses: ./.github/actions/prune-vm - - - uses: actions/setup-python@v4 - with: - python-version: '3.12' - cache: 'pip' - - - run: | - pip install -r requirements.txt - mkdir -p kzgrs - wget https://raw.githubusercontent.com/logos-co/nomos-node/master/tests/kzgrs/kzgrs_test_params -O kzgrs/kzgrs_test_params - - - name: Run tests - run: | - pytest tests/data_integrity/test_data_integrity.py diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml new file mode 100644 index 0000000..a625848 --- /dev/null +++ b/.github/workflows/test_common.yml @@ -0,0 +1,32 @@ +name: E2E Tests Common + +on: + workflow_call: + +env: + FORCE_COLOR: "1" + +jobs: + tests: + name: tests + runs-on: ubuntu-latest + timeout-minutes: 120 + steps: + - uses: actions/checkout@v4 + + - name: Remove unwanted software + uses: ./.github/actions/prune-vm + + - uses: actions/setup-python@v4 + with: + python-version: '3.12' + cache: 'pip' + + - run: | + pip install -r requirements.txt + mkdir -p kzgrs + wget https://raw.githubusercontent.com/logos-co/nomos-node/master/tests/kzgrs/kzgrs_test_params -O kzgrs/kzgrs_test_params + + - name: Run tests + run: | + pytest \ No newline at end of file