From 77a70475822a28600bce98fc336a30687f536e85 Mon Sep 17 00:00:00 2001 From: Philip Langer Date: Wed, 1 Nov 2023 17:27:17 +0100 Subject: [PATCH] fix(ci): pin Python 3.11 for playwright workflow Same problem and same solution as in https://github.com/eclipse-theia/theia/issues/13008. Contributed on behalf of STMicroelectronics --- .github/workflows/main.yml | 4 ++-- .github/workflows/performance.yml | 9 +++------ scripts/performance-report.ts | 11 +++++++++++ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d9fa590b4..7fc4fd16c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,10 +28,10 @@ jobs: node-version: "16.x" registry-url: "https://registry.npmjs.org" - - name: Use Python 3.x + - name: Use Python 3.11 uses: actions/setup-python@v4 with: - python-version: "3.x" + python-version: "3.11" - name: Build shell: bash diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 8bf7c0adf..4d6954941 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -2,9 +2,6 @@ name: Performance on: workflow_dispatch: - pull_request: # FIXME JUST FOR TESTING - branches: - - main schedule: - cron: "0 5 * * *" # Runs every day at 5am: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule @@ -21,10 +18,10 @@ jobs: with: node-version: "16.x" registry-url: "https://registry.npmjs.org" - - name: Use Python 3.x + - name: Use Python 3.11 uses: actions/setup-python@v4 with: - python-version: "3.x" + python-version: "3.11" - name: Build shell: bash run: yarn @@ -132,7 +129,7 @@ jobs: name: performance-measurement-${{ github.run_number }} path: performance-metrics - name: Prepare Report - if: always() && github.ref == 'refs/heads/main' + if: always() && github.ref == 'refs/heads/test' shell: bash run: yarn performance-report - name: Publish Report diff --git a/scripts/performance-report.ts b/scripts/performance-report.ts index c638a8e01..2ce151e7a 100644 --- a/scripts/performance-report.ts +++ b/scripts/performance-report.ts @@ -158,6 +158,17 @@ export async function generatePerformanceReport(path: string) { data: ${JSON.stringify(best)} }, ] + }, + options: { + scales: { + yAxes: [{ + type: 'logarithmic', + ticks: { + min: 1, + max: 1000 + } + }] + } } });