Can I run locust load test in Github Actions

I want to integrate load test in CI/CD pipeline. Can I generate load from Github Actions? Are there any restrictions on traffic generation to out side servers?

Thanks

There is an action to run locust load test: https://github.com/marketplace/actions/locust-load-test

Are there any restrictions on traffic generation to out side servers?

Could you please share an example or a detail explanation for “traffic generation to out side servers” ?

Here is the process.

  1. Github Actions trigger
  2. A Locust docker container(contains tests python scripts) launched in Github actions and generates traffic to my app server
+-----------------+
|                 |                    +-----------------+
|  Github Actions |                    |                 |
|  (On Github     |                    |  My App server  |
|   SERVERS)      |                    |                 |
| +-------------+ |                    |                 |
| |             | |   Load generation  |                 |
| |  My Locust  | |                    |                 |
| |  Container  +--------------------->+                 |
| |             | |                    |                 |
| +-------------+ |                    |                 |
|                 |                    |                 |
+-----------------+                    +-----------------+

As long as your App server could be reached through the Internet, you could send load generation to it from the container inside GitHub Action Hosted runner.
You could first ping your App Server inside the Container.

I think the question is more if creating a lot of network traffic for a load test will violate any terms of service, or maybe cost money?