@@ -65,13 +65,33 @@ jobs:
65
65
with :
66
66
token : ${{ secrets.CODECOV_TOKEN }}
67
67
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
70
92
runs-on : ubuntu-latest
71
-
72
93
steps :
73
94
- uses : actions/checkout@v4
74
-
75
95
- name : Bring up docker compose and load data
76
96
run : |
77
97
docker compose up -d --build || ( docker compose logs >&2 && exit 1; )
@@ -82,10 +102,15 @@ jobs:
82
102
docker compose exec --user root web pip install factory-boy
83
103
cat performance_test/create_data.py | docker compose exec -T web src/manage.py shell
84
104
85
- - name : Run tests
105
+ - name : Install dependencies
86
106
run : |
87
107
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"
89
114
90
115
docs :
91
116
runs-on : ubuntu-latest
0 commit comments