Skip to content

[dynamicviz] Add workflow for pytest#14

Merged
marioernestovaldes merged 2 commits intodevfrom
codex/set-up-pytest-workflow-before-merge
Jun 18, 2025
Merged

[dynamicviz] Add workflow for pytest#14
marioernestovaldes merged 2 commits intodevfrom
codex/set-up-pytest-workflow-before-merge

Conversation

@marioernestovaldes
Copy link
Owner

@marioernestovaldes marioernestovaldes commented Jun 18, 2025

Summary

  • add GitHub Actions workflow to run pytest
  • format score.py with black

Testing

  • black . --check
  • ruff check .
  • pytest -q

https://chatgpt.com/codex/tasks/task_e_68531e2eedf48333bd3b7e95dbef957a

Summary by Sourcery

Add a CI workflow to run pytest via GitHub Actions and apply Black formatting to score.py

Enhancements:

  • Reformat score.py using Black for consistent code style

CI:

  • Add a GitHub Actions workflow to run pytest on pull requests and pushes to main/master

@sourcery-ai
Copy link

sourcery-ai bot commented Jun 18, 2025

Reviewer's Guide

This PR introduces a new GitHub Actions workflow for running pytest on CI and applies Black formatting to dynamicviz/score.py, improving test automation and code style compliance.

File-Level Changes

Change Details Files
Apply Black formatting to score.py
  • Wrap the pairwise_distances call across multiple lines
  • Reflow slicing expression and adjust indentation
dynamicviz/score.py
Add GitHub Actions workflow to run pytest
  • Create pytest.yml in .github/workflows
  • Configure triggers on pull_request and push to main/master
  • Set up ubuntu-latest runner with Python 3.10
  • Install dependencies (requirements.txt and package)
  • Run pytest with -q flag
.github/workflows/pytest.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@marioernestovaldes marioernestovaldes merged commit d0dd43a into dev Jun 18, 2025
1 check passed
@marioernestovaldes marioernestovaldes deleted the codex/set-up-pytest-workflow-before-merge branch June 18, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant