setup report

This commit is contained in:
fbarbu15 2023-11-01 14:34:55 +02:00
parent e270742d5b
commit a98ae52d83
No known key found for this signature in database
GPG Key ID: D75221C8DEA22501
1 changed files with 68 additions and 0 deletions

68
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,68 @@
name: Interop Tests
on:
schedule:
- cron: '0 3 * * *'
pull_request:
branches:
- master
workflow_dispatch:
inputs:
node1:
required: false
type: string
default: "wakuorg/nwaku:deploy-wakuv2-test"
node2:
required: false
type: string
default: "wakuorg/go-waku:latest"
env:
FORCE_COLOR: "1"
NODE_1: ${{ inputs.node1 || 'wakuorg/nwaku:deploy-wakuv2-test' }}
NODE_2: ${{ inputs.node2 || 'wakuorg/go-waku:latest' }}
jobs:
tests:
name: tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
- run: pip install -r requirements.txt
- name: Run tests
run: pytest -n 3 --reruns 5 --alluredir=allure-results
- name: Get allure history
if: always()
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
- name: Setup allure report
uses: simple-elf/allure-report-action@master
if: always()
id: allure-report
with:
allure_results: allure-results
gh_pages: gh-pages
allure_history: allure-history
keep_reports: 30
- name: Deploy report to Github Pages
uses: peaceiris/actions-gh-pages@v3
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: allure-history