Skip to content

Commit

Permalink
Share volumes across docker images so we can commit results in the wo…
Browse files Browse the repository at this point in the history
…rkflow
  • Loading branch information
SolarDrew committed Apr 26, 2024
1 parent 831c41d commit fae780a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/benchmark-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,23 @@ concurrency:
jobs:
benchmarks:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
container:
volumes:
- ~:/github
with:
default_python: '3.10'
envs: |
- linux: benchmark-main
update-repo:
runs-on: ubuntu-latest
container:
volumes:
- ~:/github
needs: [benchmarks]
run: |
git clone https://github.com/DKISTDC/dkist-benchmarks.git /github/dkist-benchmarks
cd /dkist-benchmarks
git add main.json
git commit -m "Update benchmark data for main"
git push origin main
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,5 @@ commands =
description = Run benchmarks on main to keep comparison data up to date
allowlist_externals = git,cp
commands =
git clone https://github.com/DKISTDC/dkist-benchmarks.git {env_tmp_dir}/dkist-benchmarks
{env:PYTEST_COMMAND} -k test_benchmarks --benchmark-save=main
cp {toxinidir}/.tmp/benchmark-main/.benchmarks/Linux-CPython-3.10-64bit/0001_main.json {env_tmp_dir}/dkist-benchmarks/main.json
cp {toxinidir}/.tmp/benchmark-main/.benchmarks/Linux-CPython-3.10-64bit/0001_main.json /github/main.json

0 comments on commit fae780a

Please sign in to comment.