Skip to content

Conversation

@tpfrne
Copy link
Contributor

@tpfrne tpfrne commented Jul 3, 2025

Ticket 🎟

SP-148


What ⁉️

Migrates from Travis to GHA and expands the number of python versions tested against

@tpfrne tpfrne requested a review from Copilot July 4, 2025 11:33
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates CI from Travis to GitHub Actions and expands supported Python versions.

  • Removes .travis.yml and adds a new GitHub Actions workflow
  • Updates pyproject.toml classifiers to test Python 3.8–3.13
  • Cleans up minor formatting in client modules and test files

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
trustpilot/client.py Re-formatted tuple line breaks for status code check
trustpilot/async_client.py Removed extra blank lines
tests/test_cli.py Removed unnecessary u prefixes from triple-quoted strings
pyproject.toml Expanded Python classifiers to 3.8–3.13
.travis.yml Removed obsolete Travis CI config
.github/workflows/pushes.yaml Added GitHub Actions build-and-test workflow


@mock.patch("trustpilot.cli.client", autospec=True)
@mock.patch("trustpilot.cli.auth")
def test_no_verbosity_with_get(self, auth_mock, client_mock):
Copy link

Copilot AI Jul 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test test_no_verbosity_with_get is defined twice in this file, which causes the first definition to be overridden. Please remove or rename the duplicate to avoid unexpected test behavior.

Suggested change
def test_no_verbosity_with_get(self, auth_mock, client_mock):
def test_no_verbosity_with_get_first(self, auth_mock, client_mock):

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@sneeu sneeu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@tpfrne tpfrne merged commit e474989 into master Jul 7, 2025
6 checks passed
@tpfrne tpfrne deleted the SP-148-gha branch July 7, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants