update github yaml
This commit is contained in:
parent
119a45dddd
commit
add0a80e9f
|
@ -9,6 +9,8 @@ on:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0,4,12 * * *'
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -16,7 +18,7 @@ on:
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
# This workflow contains a single job called "build"
|
||||||
build:
|
test:
|
||||||
# The type of runner that the job will run on
|
# The type of runner that the job will run on
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
@ -32,10 +34,20 @@ jobs:
|
||||||
cache: 'pipenv'
|
cache: 'pipenv'
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
||||||
- run: pipenv install wheel
|
- name: Install dependencies
|
||||||
- run: pipenv install
|
run: |
|
||||||
- run: pipenv run python -m playwright install
|
pipenv install wheel
|
||||||
- name: Run test cases and generate report
|
pipenv install
|
||||||
run: pipenv run python run.py
|
- name: Ensure browsers are installed
|
||||||
|
run: pipenv run python -m playwright install
|
||||||
|
- name: Run test cases
|
||||||
|
run: pytest -s --alluredir=temp -m smoke
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: playwright-traces_and_results
|
||||||
|
path: |
|
||||||
|
temp/
|
||||||
|
*trace.zip
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue