Skip to content

Migrate from Gitpod Classic to GitHub Codespaces #93

Migrate from Gitpod Classic to GitHub Codespaces

Migrate from Gitpod Classic to GitHub Codespaces #93

Workflow file for this run

name: Benchmarks
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Install local package
run: |
python -m pip install --editable .
- name: Calculate and log performance
run: |
python src/benchmarks/call_benchmark.py > benchmarks-${{ matrix.os }}-${{ matrix.python-version }}.txt
cat benchmarks-${{ matrix.os }}-${{ matrix.python-version }}.txt
- name: Upload benchmarks
uses: actions/upload-artifact@v4
with:
name: benchmarks-${{ matrix.os }}-${{ matrix.python-version }}
path: benchmarks-${{ matrix.os }}-${{ matrix.python-version }}.txt
if: ${{ always() }}