mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-12-27 07:54:45 +00:00
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
name: Update tests list from master branch
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'tests/**'
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: build and push Docker image
|
|
uses: ./.github/actions/build-and-push-docker
|
|
with:
|
|
registry: tip-tip-wlan-cloud-docker-repo.jfrog.io
|
|
registry_user: ${{ secrets.DOCKER_USER_NAME }}
|
|
registry_password: ${{ secrets.DOCKER_USER_PASSWORD }}
|
|
|
|
testsgen:
|
|
needs: [build]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Generate tests as allure results
|
|
run: docker run -v $PWD/allure-results:/allure-results tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} -c "cd tests; pytest -s -vvv --alluredir=/allure-results --skip-all"
|
|
|
|
- name: Generate Allure report
|
|
uses: ./.github/actions/generate-allure-report
|
|
with:
|
|
results_path: ./allure-results
|
|
|
|
- name: Publish Allure report to GitHub Pages
|
|
uses: ad-m/github-push-action@v0.6.0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: gh-pages
|
|
directory: ./allure-report
|
|
|
|
cleanup:
|
|
needs: [build, testsgen]
|
|
runs-on: ubuntu-latest
|
|
if: always()
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: cleanup Docker image
|
|
uses: ./.github/actions/cleanup-docker
|
|
with:
|
|
registry_user: ${{ secrets.DOCKER_USER_NAME }}
|
|
registry_password: ${{ secrets.DOCKER_USER_PASSWORD }}
|