Skip to content

LCG Benchmark

LCG Benchmark #3

Workflow file for this run

name: LCG Benchmark
on:
push:
branches:
- main
paths:
- "**/lcg_benchmark.py"
workflow_dispatch:
jobs:
benchmark:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: pip install cython
- name: Run benchmark and save output
run: |
cd benchmark
python lcg_benchmark.py
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "auto-generated: 🤖 add benchmark output"
file_pattern: "**/lcg_output.txt"
- uses: actions/upload-artifact@v3
with:
name: Benchmark output
path: ./benchmark/lcg_output.txt