File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments