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 + } + }] + } } });