LCG Benchmark #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |