Add info about ucc.supported_formats, update QASM links, add docs ins… #94
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: Run Benchmarks | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
run-benchmarks: | |
runs-on: ucc-benchmarks-8-core | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Ensure the full history is fetched for branch operations | |
# Checkout the correct branch | |
- name: Checkout the branch | |
run: | | |
BRANCH_NAME="${{ github.head_ref || github.ref_name }}" | |
echo "Checking out branch: $BRANCH_NAME" | |
git checkout $BRANCH_NAME | |
# Build the Docker image | |
- name: Build Docker image | |
run: docker build -t ucc-benchmark . | |
# Run the benchmarks in the Docker container | |
- name: Run benchmarks | |
run: | | |
docker run --rm \ | |
-v ${{ github.workspace }}/benchmarks/results:/ucc/benchmarks/results \ | |
ucc-benchmark bash -c "source /venv/bin/activate && ./benchmarks/scripts/run_benchmarks.sh 8" | |
# Commit and push benchmark results using a dedicated action | |
- name: Commit and push results | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: GitHub Actions | |
author_email: actions@github.com | |
message: "Update benchmark results" | |
add: "." | |
push: true |