From 746e7d24103afa82790a4319a4158467873163f6 Mon Sep 17 00:00:00 2001 From: Julien Maupetit Date: Thu, 21 Nov 2024 19:06:40 +0100 Subject: [PATCH] fixup! CI message first test --- .github/workflows/api.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index 11e23148..f9079da1 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -71,13 +71,18 @@ jobs: python-version: "3.12" cache: "pipenv" cache-dependency-path: "src/api/Pipfile.lock" - - uses: actions/github-script@v7 - id: set-result - with: - script: return "Hello!" - result-encoding: string - - name: Get result - run: echo "${{steps.set-result.outputs.result}}" + - name: run locust + run: | + pipenv run honcho start & + pipenv run locust \ + -f ../bench/locustfile.py \ + --headless \ + -u 30 \ + -r 1 \ + --run-time 30s \ + -H 'http://localhost:8000/api/v1' \ + --csv bench_admin \ + APIAdminUser - uses: actions/github-script@v7 with: script: |