This commit is contained in:
parent
77c0894501
commit
9d6b34963a
42
.github/workflows/console-test-run.yml
vendored
42
.github/workflows/console-test-run.yml
vendored
@ -9,20 +9,28 @@ on:
|
|||||||
github-sha:
|
github-sha:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
console-test-branch:
|
||||||
|
type: choice
|
||||||
|
description: 'main: v0.72.14, develop: v0.73.0-preview7'
|
||||||
|
options:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-tests:
|
run-tests:
|
||||||
name: run-tests
|
name: run-tests
|
||||||
runs-on: console-test
|
runs-on: 8-cores
|
||||||
timeout-minutes: 40
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
# check-out frontend-monorepo
|
# check-out frontend-monorepo
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
- name: Checkout console test repo
|
- name: Checkout frontend-monorepo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.github-sha }}
|
ref: ${{ inputs.github-sha || github.sha }}
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
# cache node modules
|
# cache node modules
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
@ -68,7 +76,18 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: vegaprotocol/console-test
|
repository: vegaprotocol/console-test
|
||||||
|
ref: ${{ inputs.console-test-branch }}
|
||||||
path: './console-test'
|
path: './console-test'
|
||||||
|
|
||||||
|
- name: Load console test envs
|
||||||
|
id: console-test-env
|
||||||
|
uses: falti/dotenv-action@v1.0.4
|
||||||
|
with:
|
||||||
|
path: './console-test/.env.${{ inputs.console-test-branch }}'
|
||||||
|
export-variables: true
|
||||||
|
keys-case: upper
|
||||||
|
log-variables: true
|
||||||
|
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
# install dependencies
|
# install dependencies
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
@ -96,8 +115,7 @@ jobs:
|
|||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
- name: Install vega binaries
|
- name: Install vega binaries
|
||||||
working-directory: ./console-test
|
working-directory: ./console-test
|
||||||
if: steps.vega_binaries_cache.outputs.cache-hit != 'true'
|
run: poetry run python -m vega_sim.tools.load_binaries --force --version ${{ env.VEGA_VERSION }}
|
||||||
run: poetry run python -m vega_sim.tools.load_binaries --force --version $VEGA_VERSION
|
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
# install playwright
|
# install playwright
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
@ -109,7 +127,7 @@ jobs:
|
|||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: ./console-test
|
working-directory: ./console-test
|
||||||
run: poetry run pytest -v -s --numprocesses 2 --dist loadfile --durations=20
|
run: poetry run pytest -v -s --numprocesses 4 --dist loadfile --durations=15
|
||||||
- name: Check files
|
- name: Check files
|
||||||
run: |
|
run: |
|
||||||
ls -al .
|
ls -al .
|
||||||
@ -124,3 +142,13 @@ jobs:
|
|||||||
name: playwright-trace
|
name: playwright-trace
|
||||||
path: ./traces/
|
path: ./traces/
|
||||||
retention-days: 15
|
retention-days: 15
|
||||||
|
#----------------------------------------------
|
||||||
|
# ----- upload logs -----
|
||||||
|
#----------------------------------------------
|
||||||
|
- name: Upload worker logs
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: worker-logs
|
||||||
|
path: ./logs/
|
||||||
|
retention-days: 15
|
||||||
|
Loading…
Reference in New Issue
Block a user