Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert CI/CD to GitHub actions. #391

Merged
merged 20 commits into from
Feb 2, 2024

Commits on Jan 4, 2024

  1. Configuration menu
    Copy the full SHA
    02e0e77 View commit details
    Browse the repository at this point in the history
  2. entrypoint.sh: Switch to using pgrep to verify running Xvfb process.

    'pgrep Xvfb' identifies the process by name, which is a more robust test.
    
    The output of 'ps aux | grep Xvfb' inside the Docker container running on Apple silicon is slightly different
    and incompatible with the previous while condition:
    
    $ ps aux | grep Xvfb
    root      3025  0.0  0.4 1451928 32588 pts/0   Sl   14:25   0:00 /rosetta/rosetta /usr/bin/Xvfb Xvfb :99 -screen 0 1024x768x16
    root      3142  0.0  0.0 1206448 7808 pts/0    S+   14:32   0:00 /rosetta/rosetta /usr/bin/grep grep --color=auto Xvfb
    martin-chatterjee committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    e4ffb10 View commit details
    Browse the repository at this point in the history
  3. entrypoint.sh: Exit with code 124 if Xvfb is not running after 60 secs.

    Prevent potential infinite loop if Xvfb is not able to start up, for whatever reason.
    Exit with exit code 124 ("Command timed out") after 60 seconds.
    martin-chatterjee committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    95f7d6b View commit details
    Browse the repository at this point in the history
  4. Github Actions: Add 'run-tests' workflow.

    One-to-one conversion of the previous Travis CI based testing workflow.
    ❗️ Currently runs on every push ❗️
    martin-chatterjee committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    782c2db View commit details
    Browse the repository at this point in the history
  5. entrypoint.sh: Remove obsolete pip installation.

    A separate Github Action will take care of the package deployment to PyPi.
    Therefore, the pip installation within the Docker container can be removed.
    martin-chatterjee committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    a2cadee View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. run-tests.yaml: Only run on pushed commits, not on pushed tags.

    'Run tests' should not run on pushed tags, otherwise we it would
    get run twice unneccesarily during release tag push.
    martin-chatterjee committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    1c1a99f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ba39275 View commit details
    Browse the repository at this point in the history
  3. Github Actions: Add 'release-to-pypi' workflow.

    - Uses PyPA's release Github action.
    - The Github repo needs to be set up as a 'Trusted Publisher' on pypi.org.
    - ❗️ For testing purposes this workflow currently releases to test.pypi.org ❗️
         → This needs to be removed before a potential merge into main.
    martin-chatterjee committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    92a5dc2 View commit details
    Browse the repository at this point in the history
  4. setup.py: Pass content of 'README.md' in as long_description.

    Modern twine/build expects long_description to be set.
    This way 'README.md' will be displayed on https://pypi.org/project/Qt.py/.
    martin-chatterjee committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    d90800a View commit details
    Browse the repository at this point in the history
  5. README.md: Load logo with absolute URL.

    This way it will also render correctly on https://pypi.org/project/Qt.py/.
    martin-chatterjee committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    f7e2064 View commit details
    Browse the repository at this point in the history
  6. README.md: Replace Travis CI badge with Github Actions badge.

    ❗️ Currently references 'martin-chatterjee/Qt.py', for testing purposes. ❗️
    martin-chatterjee committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    1618938 View commit details
    Browse the repository at this point in the history
  7. README.md: Add CI changes to News section.

    ❗️ Currently states 'version 1.3.9'. This is an assumption, and
       needs to be changed before merge. ❗️
    martin-chatterjee committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    636dc16 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f117855 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cd4cb74 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c1f5885 View commit details
    Browse the repository at this point in the history
  11. Release test: Change project name and version.

    Test-releases to 'test.pypi.org' as project 'martin-chatterjee-Qt.py'.
    martin-chatterjee committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    7734178 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    e9a79fb View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    8415b61 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    009591d View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2024

  1. Configuration menu
    Copy the full SHA
    65d87b3 View commit details
    Browse the repository at this point in the history