clear branch
This commit is contained in:
parent
c7a724cdc0
commit
03160aef06
|
@ -21,62 +21,59 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
allow-prereleases: true
|
allow-prereleases: true
|
||||||
cache: 'pipenv'
|
cache: 'pipenv'
|
||||||
|
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
run: pip install pipenv
|
run: pip install pipenv
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pipenv install wheel
|
pipenv install wheel
|
||||||
pipenv install
|
pipenv install
|
||||||
|
|
||||||
- name: Ensure browsers are installed
|
- name: Ensure browsers are installed
|
||||||
run: pipenv run python -m playwright install
|
run: pipenv run python -m playwright install
|
||||||
|
|
||||||
- name: Run test cases
|
- name: Run test cases
|
||||||
run: pipenv run python run.py
|
run: pipenv run python run.py
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
if: always()
|
- uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
name: playwright-traces_and_results
|
name: Test-allure-report
|
||||||
# 跑完的allure测试结果是放在项目report目录下的
|
path: report # path to store the allure report
|
||||||
path: |
|
retention-days: 20
|
||||||
report/
|
|
||||||
*trace.zip
|
|
||||||
|
|
||||||
# - uses: actions/upload-artifact@master
|
- name: Get Allure history # Step to retrieve Allure history
|
||||||
# with:
|
uses: actions/checkout@v4
|
||||||
# name: Test-allure-report
|
if: always() # Execute even if previous steps fail
|
||||||
# path: report # upload the latest report file
|
continue-on-error: true # Continue execution even if the step fails
|
||||||
# retention-days: 20
|
with:
|
||||||
#
|
ref: gh-pages # Specify the branch to retrieve Allure history from
|
||||||
# - name: Get Allure history # Step to retrieve Allure history
|
path: gh-pages # Set the destination path for Allure history
|
||||||
# uses: actions/checkout@v4
|
|
||||||
# if: always() # Execute even if previous steps fail
|
- name: Generate allure report action # Step to generate Allure report
|
||||||
# continue-on-error: true # Continue execution even if the step fails
|
uses: simple-elf/allure-report-action@master
|
||||||
# with:
|
if: always() # Execute even if previous steps fail
|
||||||
# ref: gh-pages # Specify the branch to retrieve Allure history from
|
id: allure-report
|
||||||
# path: gh-pages # Set the destination path for Allure history
|
with:
|
||||||
#
|
allure_results: temp # path to store the allure results
|
||||||
# - name: Generate allure report action # Step to generate Allure report
|
allure_history: allure-history # Specify the directory to store Allure history
|
||||||
# uses: simple-elf/allure-report-action@master
|
allure_report: allure-report
|
||||||
# if: always() # Execute even if previous steps fail
|
keep_reports: 20 # Specify the number of previous reports to keep
|
||||||
# id: allure-report
|
|
||||||
# with:
|
- name: Deploy Allure report to GitHub Pages # Step to deploy Allure report to GitHub Pages
|
||||||
# allure_results: temp # Specify the directory containing Allure results
|
if: always() # Execute even if previous steps fail
|
||||||
# allure_history: allure-history # Specify the directory to store Allure history
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
# allure_report: allure-report
|
with:
|
||||||
# keep_reports: 20 # Specify the number of previous reports to keep
|
github_token: ${{ secrets.GITHUB_TOKEN }} # Provide the GitHub token for authentication
|
||||||
#
|
publish_branch: gh-pages # Specify the branch to publish the report to
|
||||||
# - name: Deploy Allure report to GitHub Pages # Step to deploy Allure report to GitHub Pages
|
publish_dir: allure-history # Specify the directory containing the report
|
||||||
# if: always() # Execute even if previous steps fail
|
|
||||||
# uses: peaceiris/actions-gh-pages@v3
|
|
||||||
# with:
|
|
||||||
# github_token: ${{ secrets.GITHUB_TOKEN }} # Provide the GitHub token for authentication
|
|
||||||
# publish_branch: gh-pages # Specify the branch to publish the report to
|
|
||||||
# publish_dir: allure-history # Specify the directory containing the report
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue