GithubHelp home page GithubHelp logo

codebuild-parallel-pytest's Introduction

codebuild-parallel-pytest

This repository contains sample codes for running parallel pytest executions using AWS CodeBuild.

Project Structure

Below is the file tree of the project, outlining its key components:

.
├── build
│   ├── buildspec_parallel.yaml  # Build specification for parallel execution
│   └── buildspec.yaml           # General build specification
├── README.md                    # (this file)
├── scripts
│   └── run_pytest_selected_part_with_arg_index.py  # Script to run a selected part of pytest files
└── tests
    └── unit
        ├── app
        │   ├── __init__.py
        │   ├── test_001.py
        │   ├── test_002.py
        │   └── test_003.py
        ├── __init__.py
        ├── test_001.py
        ├── test_002.py
        ├── test_003.py
        ├── test_004.py
        ├── test_005.py
        ├── test_006.py
        ├── test_007.py
        ├── test_008.py
        ├── test_009.py
        └── test_010.py

Key Components

  • Build Specifications: Located in the build directory. buildspec_parallel.yaml is specifically used for parallel execution setup.
  • Scripts: Contains run_pytest_selected_part_with_arg_index.py, which is a script to run a designated part of pytest files based on argument index.
  • Pytest Files: Located under tests/unit, these are simple pytest files named test_001.py, test_002.py, etc.

CodeBuild Configuration Example

Source Setup

  • GitHub: Fork this repository and configure your Personal Access Token (PAT) and other settings as needed.
  • Amazon S3: Compress the build, scripts, and tests in one zip file and upload them to your S3 bucket.

Environment Setup

  • Image: Managed Image
  • Compute Type: EC2
  • Image Detail: aws/codebuild/amazonlinux2-x86_64-standard:4.0 (supports Python 3.9)

Additional Configurations

  • Service Role: Configure as required for your setup.
  • Buildspec Name: build/buildspec_parallel.yaml
  • Batch Configuration: Enable
  • CloudWatch Logs: Enable

codebuild-parallel-pytest's People

Contributors

shimo164 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.