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: Run tests in CI #1388

Merged
merged 5 commits into from
Mar 5, 2024
Merged

ci: Run tests in CI #1388

merged 5 commits into from
Mar 5, 2024

Conversation

hrkfdn
Copy link
Owner

@hrkfdn hrkfdn commented Feb 4, 2024

Describe your changes

Thanks to contributors test coverage is becoming a thing, thus it makes sense to run tests in CI workflows.

Additionally, switch back to cargo build instead of cargo check, as the tests need compilation anyway.

Issue ticket number and link

Checklist before requesting a review

  • Documentation was updated (i.e. due to changes in keybindings, commands, etc.)
  • Changelog was updated with relevant user-facing changes (eg. not dependency updates,
    not performance improvements, etc.)

@hrkfdn hrkfdn force-pushed the hf/ci_test branch 4 times, most recently from 479fa22 to cd25442 Compare February 4, 2024 10:53
@ThomasFrans
Copy link
Contributor

ThomasFrans commented Feb 4, 2024

I'm not 100% sure about this but doesn't the test build use a different build profile? It does inherit the dev profile, but I don't know whether cargo is smart enough to reuse the same build artifacts in practice...

Quickly tested and seems like cargo does reuse the files between dev and test builds.

@hrkfdn
Copy link
Owner Author

hrkfdn commented Feb 4, 2024 via email

@ThomasFrans
Copy link
Contributor

Yes I was wrong. I should have tested first. I just assumed that cargo treated both differently.

@hrkfdn hrkfdn force-pushed the hf/ci_test branch 8 times, most recently from 0215e47 to 216fe82 Compare February 4, 2024 21:05
hrkfdn added 2 commits March 4, 2024 14:12
Thanks to contributors test coverage is becoming a thing, thus it makes sense to
run tests in CI workflows.

Additionally, switch back to `cargo build` instead of `cargo check`, as the
tests need compilation anyway.
@hrkfdn hrkfdn force-pushed the hf/ci_test branch 12 times, most recently from 9011e6e to 7474f04 Compare March 5, 2024 10:10
@hrkfdn hrkfdn force-pushed the hf/ci_test branch 4 times, most recently from 7f968ad to 0253468 Compare March 5, 2024 10:38
@hrkfdn hrkfdn merged commit 0f1a9ab into main Mar 5, 2024
5 checks passed
@hrkfdn hrkfdn deleted the hf/ci_test branch March 5, 2024 10:48
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