Skip to content
check-square

GitHub Action

Scope for Python

v1 Latest version
Use latest version
check-square

Scope for Python

Automatically instruments and runs your tests using the Scope Python agent

Installation

Copy and paste the following snippet into your .yml file.

- name: Scope for Python
  uses: undefinedlabs/scope-for-python-action@v1
Learn more about this action in undefinedlabs/scope-for-python-action
Choose a version

logo

Scope for Python

GitHub Action to run your tests automatically instrumented with the Scope Python agent.

About Scope

Scope gives developers production-level visibility on every test for every app – spanning mobile, monoliths, and microservices.

Usage

  1. Set Scope DSN inside Settings > Secrets as SCOPE_DSN.
  2. Add a step to your GitHub Actions workflow YAML that uses this action:
steps:
  - uses: actions/checkout@v1
  - uses: actions/setup-python@v1
    with:
      python-version: '3.x'
  - name: Install dependencies
    run: pip install -r requirements.txt
  - name: Scope for Python
    uses: undefinedlabs/scope-for-python-action@v1
    with:
      dsn: ${{secrets.SCOPE_DSN}} # required
      command: python -m unittest discover # optional - default is 'python -m unittest discover'
You can’t perform that action at this time.