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

improve tests and build CI infrastructure #41

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

klaernie
Copy link
Member

@klaernie klaernie commented Feb 2, 2025

After looking at the recent regression I think it is a good idea to run tests one every change. This way we should no longer accidentally publish a release that does not work for our users.

The tests done are twofold:

  • the first portion runs the same kind of test we use in run-tests.sh: using the default python installation, install the local package and then run ec --version to ensure a working binary has become available. This is matrixed over the platforms GitHub Actions provides: ubuntu both x64 and arm64, MacOS 13 (the last Intel variant) and 15 (arm64 M1), and lastly x64 Windows (sadly no ARM support there yet).
  • second portion runs make test on an Ubuntu 24.04 runner, verifying that our backwards compatibility to all python releases is intact.

this avoids the need to replace content in the Dockerfile using sed and
makes it possible to run a quick test using `make quicktest` (using the
defaults for the build arguments specified in the Dockerfile)
This reduces the test runtime from about 5min to 3min on my machine.
this tests in two ways:
- install the package locally in each major os/architecture combination
  supported by GitHub Actions, then run `editorconfig-checker --version`
  like `run-tests.sh` does
- running `run-tests.sh` once in an ubuntu machines

The workflow is triggered both by pushes to any of the branches and for
each pull request.
@mmicu
Copy link
Member

mmicu commented Feb 7, 2025

Thanks for your work here, really useful. I will try to review the changes next week.

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