Skip to content

Commit 4a5f36f

Browse files
committed
👷 Add codspeed to actions
1 parent c95eddb commit 4a5f36f

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,33 @@ jobs:
6565
with:
6666
token: ${{ secrets.CODECOV_TOKEN }}
6767

68-
performance-tests:
69-
name: Run the performance test suite
68+
# performance-tests:
69+
# name: Run the performance test suite
70+
# runs-on: ubuntu-latest
71+
72+
# steps:
73+
# - uses: actions/checkout@v4
74+
75+
# - name: Bring up docker compose and load data
76+
# run: |
77+
# docker compose up -d --build || ( docker compose logs >&2 && exit 1; )
78+
# until docker compose logs web | grep -q "spawned uWSGI worker"; do
79+
# echo "uWSGI not running yet, waiting..."
80+
# sleep 3
81+
# done
82+
# docker compose exec --user root web pip install factory-boy
83+
# cat performance_test/create_data.py | docker compose exec -T web src/manage.py shell
84+
85+
# - name: Run tests
86+
# run: |
87+
# pip install -r requirements/ci.txt
88+
# pytest performance_test/ --benchmark-json output.json
89+
90+
benchmarks:
91+
name: Run benchmarks
7092
runs-on: ubuntu-latest
71-
7293
steps:
7394
- uses: actions/checkout@v4
74-
7595
- name: Bring up docker compose and load data
7696
run: |
7797
docker compose up -d --build || ( docker compose logs >&2 && exit 1; )
@@ -82,10 +102,15 @@ jobs:
82102
docker compose exec --user root web pip install factory-boy
83103
cat performance_test/create_data.py | docker compose exec -T web src/manage.py shell
84104
85-
- name: Run tests
105+
- name: Install dependencies
86106
run: |
87107
pip install -r requirements/ci.txt
88-
pytest performance_test/ --benchmark-json output.json
108+
109+
- name: Run benchmarks
110+
uses: CodSpeedHQ/action@v3
111+
with:
112+
token: ${{ secrets.CODSPEED_TOKEN }}
113+
run: "pytest performance_test/ --codspeed"
89114

90115
docs:
91116
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)