From 4ed0e3a056e8a57f602a754f7193dbe3eefd29db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Szpiech?= Date: Thu, 7 Sep 2023 13:22:01 +0200 Subject: [PATCH] chore(trading): add console-test runner (#4711) --- .github/workflows/console-test-run.yml | 39 ++------------------------ 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/.github/workflows/console-test-run.yml b/.github/workflows/console-test-run.yml index 02867e9bb..28211ac59 100644 --- a/.github/workflows/console-test-run.yml +++ b/.github/workflows/console-test-run.yml @@ -10,7 +10,7 @@ on: jobs: run-tests: name: run-tests - runs-on: 8-cores + runs-on: console-test timeout-minutes: 20 steps: #---------------------------------------------- @@ -33,15 +33,6 @@ jobs: restore-keys: | ${{ runner.os }}-cache-node-modules- #---------------------------------------------- - # setup node - #---------------------------------------------- - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version-file: '.nvmrc' - # https://stackoverflow.com/questions/61010294/how-to-cache-yarn-packages-in-github-actions - cache: yarn - #---------------------------------------------- # install deps if cache missing #---------------------------------------------- - name: yarn install @@ -76,32 +67,6 @@ jobs: repository: vegaprotocol/console-test path: './console-test' #---------------------------------------------- - # set-up python - #---------------------------------------------- - - name: Set up python - id: setup-python - uses: actions/setup-python@v4 - with: - python-version: '3.10.11' - #---------------------------------------------- - # ----- install & configure poetry ----- - #---------------------------------------------- - - name: Install Poetry - uses: snok/install-poetry@v1 - with: - virtualenvs-create: true - virtualenvs-in-project: true - virtualenvs-path: console-test/.venv - #---------------------------------------------- - # load cached venv if cache exists - #---------------------------------------------- - - name: Load cached venv - id: cached-poetry-dependencies - uses: actions/cache@v3 - with: - path: console-test/.venv - key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - #---------------------------------------------- # install dependencies if cache does not exist #---------------------------------------------- - name: Install dependencies @@ -125,7 +90,7 @@ jobs: #---------------------------------------------- - name: Run tests working-directory: ./console-test - run: poetry run pytest -v -s --numprocesses auto --dist loadfile --durations=20 + run: poetry run pytest -v -s --numprocesses 2 --dist loadfile --durations=20 - name: Check files run: | ls -al .