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

CI: update the GHA ci.yml workflow #780

Merged
merged 1 commit into from
Jan 28, 2022
Merged

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Jan 28, 2022

The workflow is cleaned with various small changes:

  • Use strings for Python version specifiers. They should be treated as
    strings, because floats will cause problems. For example the float
    3.10 would be normalized to 3.1 which is not what is intended.
  • No need for pipe symbol if run is single command
  • Update actions/checkout action to v2
  • Remove unused id attribute of the caching step
  • Install and or update pip, setuptools and wheel before
    installing the package. Without wheel dependencies will have to be
    installed using the legacy method.
  • Remove explicit installation of postgres through system dependencies
    as this is already setup as a service.
  • Remove explicit creation of PostgreSQL database through the service
    step as this will be done on the fly when invoking pytest.

The workflow is cleaned with various small changes:

 * Use strings for Python version specifiers. They should be treated as
   strings, because floats will cause problems. For example the float
   `3.10` would be normalized to `3.1` which is not what is intended.
 * No need for pipe symbol if `run` is single command
 * Update `actions/checkout` action to `v2`
 * Remove unused `id` attribute of the caching step
 * Install and or update `pip`, `setuptools` and `wheel` before
   installing the package. Without `wheel` dependencies will have to be
   installed using the legacy method.
 * Remove explicit installation of postgres through system dependencies
   as this is already setup as a service.
 * Remove explicit creation of PostgreSQL database through the service
   step as this will be done on the fly when invoking `pytest`.
Copy link
Member

@mbercx mbercx left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @sphuber!

@sphuber sphuber merged commit 8680e8f into develop Jan 28, 2022
@sphuber sphuber deleted the fix/update-ci-workflow branch January 28, 2022 23:14
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.

2 participants