Skip to content

Commit

Permalink
fix(ci): pin Python 3.11 for playwright workflow
Browse files Browse the repository at this point in the history
Same problem and same solution as in
eclipse-theia/theia#13008.

Contributed on behalf of STMicroelectronics
  • Loading branch information
planger authored and tortmayr committed Nov 2, 2023
1 parent 5764ecb commit 77a7047
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions scripts/performance-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,17 @@ export async function generatePerformanceReport(path: string) {
data: ${JSON.stringify(best)}
},
]
},
options: {
scales: {
yAxes: [{
type: 'logarithmic',
ticks: {
min: 1,
max: 1000
}
}]
}
}
});
</script>
Expand Down

0 comments on commit 77a7047

Please sign in to comment.