Skip to content

Commit 58bfa0e

Browse files
committed
feat: try docker
1 parent d095613 commit 58bfa0e

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/benchmarks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
- name: Run CodSpeed inside docker compose
14+
- name: Run CodSpeed in docker
1515
run: |
1616
# create .env file with the content of the `env` command
1717
env > .env
18+
# build the image
1819
docker buildx build . -t python-image
20+
# run the container with a long running command, in privileged mode and bind the event.json file
1921
docker run -d --privileged --name python -v /home/runner/work/_temp/_github_workflow/event.json:/home/runner/work/_temp/_github_workflow/event.json python-image tail -f /dev/null
22+
# run codspeed in the container
2023
docker exec --env-file .env python sh -c "/root/.cargo/bin/codspeed run -- pytest tests/ --codspeed"

docker-compose.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)