Skip to content

apardo04/locust-github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Load Testing with Locust

A GitHub action for load testing using Locust

Sample Workflow

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"
          URL:  "https://google.com"
          USERS: "5"
          RATE: "5"
          RUNTIME: "10s"

Arguments

  • locustfile: The locustfile you want to use to load test. If no file is provided, a simple load test will be done on the landing page of the provided URL.
  • URL: URL to the site you want to load test. This is Required!
  • USERS: Number of Users to spawn. Defaults to 5.
  • RATE: Specify the hatch rate (number of users to spawn per second). Defaults to 5.
  • RUNTIME: Specify the run time for a test. Defaults to 10 seconds.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published