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

Test that translation files are compiled #1207

Merged

Conversation

ddabble
Copy link
Member

@ddabble ddabble commented Jul 10, 2023

Description

Adds a new job to the test.yml workflow file that fails if any of the .po translation files have changes in them that are not reflected in the corresponding .mo files (624708c). (This was largely based on stefanfoulis/django-phonenumber-field#446).

Additional changes

  • Minor improvements to test.yml (c171ccd, 1fba14e, 13c9c0a)
  • Dependabot now checks the workflow files for updates to the actions used in those files (b38a0dd)
  • Updated compiled translation files (670e952)
    • Not really sure what has been changed, just that these files had changes in them when compiling them locally

Related Issue

Motivation and Context

This should make it easier for PR reviewers to verify that the .mo files have been properly compiled/updated.

How Has This Been Tested?

Through GitHub Actions.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have run the pre-commit run command to format and lint.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have added my name and/or github handle to AUTHORS.rst
  • I have added my change to CHANGES.rst
  • All new and existing tests passed.

Not really sure what has been changed, just that these files had changes
in them when compiling them locally.
Multiple packages installed during some of the somewhat recent workflow
runs were not fetched from cache, as the pinned package versions were
updated in requirements files, and not in `setup.py` or `tox.ini` - which
caused the cached package versions to remain unchanged after updating
the pinned versions.
@ddabble
Copy link
Member Author

ddabble commented Jul 10, 2023

@valberg @hramezani @joshuadavidthomas Btw, do notify me if you'd like to not be tagged to review PRs anymore :)

@codecov
Copy link

codecov bot commented Jul 10, 2023

Codecov Report

Merging #1207 (1fba14e) into master (e375098) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1207   +/-   ##
=======================================
  Coverage   97.29%   97.29%           
=======================================
  Files          23       23           
  Lines        1259     1259           
  Branches      204      204           
=======================================
  Hits         1225     1225           
  Misses         16       16           
  Partials       18       18           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@valberg valberg left a comment

Choose a reason for hiding this comment

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

LGTM! Just have a small question, but it is mostly out of curiosity :)

.github/workflows/test.yml Show resolved Hide resolved
@valberg valberg merged commit 9a6755e into jazzband:master Jul 10, 2023
@valberg
Copy link
Contributor

valberg commented Jul 10, 2023

Great work @ddabble - and just keep tagging me, I'm more than happy to help review stuff :)

@ddabble ddabble deleted the feature/test-translations-are-compiled branch July 10, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants