test: daily workflow

This commit is contained in:
Roman 2025-02-13 20:19:08 +08:00
parent 4b0678afa4
commit dd3c820f27
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75
3 changed files with 43 additions and 32 deletions

11
.github/workflows/nomos_daily.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: Nomos E2E Tests
on:
schedule:
- cron: '0 4 * * *'
workflow_dispatch:
jobs:
test-common:
uses: ./.github/workflows/test_common.yml

View File

@ -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

32
.github/workflows/test_common.yml vendored Normal file
View File

@ -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