Skip to content

Commit

Permalink
Testting simplification, use built-in actions for committing
Browse files Browse the repository at this point in the history
  • Loading branch information
jordandsullivan authored Dec 10, 2024
1 parent 0204b40 commit 81925c0
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions .github/workflows/ucc-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,18 @@ on:

jobs:
run-benchmarks:
runs-on: ucc-benchmarks

runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v4

# Build the Docker image
- name: Build Docker image
run: docker build -t ucc-benchmark .
- name: Checkout Code
uses: actions/checkout@v3

# Run the benchmarks in the Docker container
- name: Run benchmarks
- name: Build and Run Docker Container
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
ucc-benchmark bash -c "source /venv/bin/activate && ./benchmarks/scripts/run_benchmarks.sh"
docker build -t ucc-benchmark .
docker run --rm -v $PWD/benchmarks/results:/ucc/benchmarks/results ucc-benchmark
# Push benchmark results to the repository
- name: Commit and push results
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git add benchmarks
git commit -m "Update benchmark results"
git push origin main
- name: Commit and Push Results
uses: EndBug/add-and-commit@v9
with:
message: "Update benchmark results"
add: "benchmarks/results"

0 comments on commit 81925c0

Please sign in to comment.