A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/marketplace/actions/locust-load-test below:

Locust Load Test · Actions · GitHub Marketplace · GitHub

A GitHub action for load testing using Locust

name: Test Locust Load Test

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v1
      - name: Run Load Test
        uses: apardo04/locust-github-action@master
        with:
          LOCUSTFILE: "locustfile.py"
          REQUIREMENTS: "requirements.txt"
          URL:  "https://google.com"
          USERS: "5"
          RATE: "5"
          RUNTIME: "10s"
Installing 3rd party dependencies for your locustfile

Please see this branch as an example: https://github.com/apardo04/locust-github-action/tree/requirements-test

  1. Make sure your repo has a requirements.txt file.
  2. In your workflows yml file, use the REQUIREMENTS input and pass it the path to the file.
  3. Import the dependencies in your locustfile.py
Using a specific version of locust
  1. Decalare a specific version in your requirements.txt file (See Installing 3rd party dependencies above)
Passing Github Secrets to locustfile

Please see this branch as an example: https://github.com/apardo04/locust-github-action/tree/env-var-test

  1. Create a repository secret in Github.
  2. Assign it to an env variable (ex: 'GITHUB_USERNAME') in the workflows yml file: https://github.com/apardo04/locust-github-action/blob/env-var-test/.github/workflows/test.yml
  3. Reference the env variable in locustfile: https://github.com/apardo04/locust-github-action/blob/env-var-test/locustfile.py

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4