EvalAI icon indicating copy to clipboard operation
EvalAI copied to clipboard

Integrate Postman API Tests into GitHub Actions CI Pipeline

Open RishabhJain2018 opened this issue 8 months ago • 3 comments

Description:

To improve backend API reliability, we should integrate Postman API tests into EvalAI’s GitHub Actions CI pipeline. This will ensure that core API endpoints remain functional and are not unintentionally broken by future pull requests — especially since current CI primarily validates backend unit tests and frontend builds.

This was originally proposed for Travis CI, but since we are migrating to GitHub Actions, the integration should be done there.

Plan:

✅ Step 1: Create Postman Test Assets

  • [ ] Create a folder at the root of the repo (e.g., postman-tests/)

  • [ ] Add the following files:

    • evalai-api-tests.postman_collection.json: Contains the API test cases.
    • evalai-env.postman_environment.json: Holds base URL, auth tokens, etc.

✅ Step 2: Add GitHub Actions Workflow

  • [ ] Use a GitHub Actions workflow to:

    • Set up Node.js

    • Install [Newman](https://github.com/postmanlabs/newman), the CLI tool for Postman

    • Run the collection:

      newman run postman-tests/evalai-api-tests.postman_collection.json \
        -e postman-tests/evalai-env.postman_environment.json
      
    • Fail the build if any API test fails

Additional Notes:

RishabhJain2018 avatar Jun 18 '25 15:06 RishabhJain2018

Hi! I'm a beginner contributor interested in DevOps and CI, and this issue looks like a great learning opportunity. May I please take this up and try it out? I may ask for help along the way. 🙂

Jayrajsinh01 avatar Jun 28 '25 02:06 Jayrajsinh01

@RishabhJain2018 /assign

Divyanshu7001 avatar Jul 15 '25 23:07 Divyanshu7001

Hi @RishabhJain2018 , I’d love to take this up if it’s still available. I can set up the Postman tests and integrate them with GitHub Actions as described. Could you please assign this issue to me?

uday-codes69 avatar Jul 16 '25 07:07 uday-codes69