Skip to content

Merge pull request #14 from joakimwinum/dependabot/github_actions/pyp… #61

Merge pull request #14 from joakimwinum/dependabot/github_actions/pyp…

Merge pull request #14 from joakimwinum/dependabot/github_actions/pyp… #61

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@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Setup Python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f
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@50769540e7f4bd5e21e526ee35c689e35e0d6874
with:
name: benchmarks-${{ matrix.os }}-${{ matrix.python-version }}
path: benchmarks-${{ matrix.os }}-${{ matrix.python-version }}.txt
if: ${{ always() }}