-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.03 KB
/
ucc-benchmarks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Run Benchmarks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-benchmarks:
runs-on: ucc-benchmarks
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 .
# Run the benchmarks in the Docker container
- name: Run benchmarks
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
ucc-benchmark bash -c "source /venv/bin/activate && ./benchmarks/scripts/run_benchmarks.sh"
# Push benchmark results to the repository
- name: Commit and push results
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add benchmarks
git commit -m "Update benchmark results"
git push origin main