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

👷 Setup CI job matrix to run cargo test #17

Merged
merged 4 commits into from
Jul 8, 2024
Merged

👷 Setup CI job matrix to run cargo test #17

merged 4 commits into from
Jul 8, 2024

Conversation

weiji14
Copy link
Owner

@weiji14 weiji14 commented Jul 8, 2024

Ensure that Rust unit tests and doctests are checked too. Running on Ubuntu-24.04.

TODO:

  • Initial CI setup
  • Test on Rust stable, beta and nightly
  • Get cargo test --doc to work

References:

Ensure that Rust unit tests and doctests are checked too. Running on Ubuntu-24.04.
@weiji14 weiji14 added this to the 0.1.0 milestone Jul 8, 2024
@weiji14 weiji14 self-assigned this Jul 8, 2024
Test on all three release channels of Rust.
Needed to enable doctests, otherwise `cargo test --doc` would error with "warning: doc tests are not supported for crate type(s) `cdylib` in package `cog3pio`". Xref https://users.rust-lang.org/t/how-to-run-only-the-doctests/54048/2 and rust-lang/cargo#4717.
Update docstring in src/lib.rs to check for an Array3 output from the read_geotiff function. Patches bca4c18.
@weiji14 weiji14 changed the title 👷 Setup CI job matrix for cargo test 👷 Setup CI job matrix to run cargo test Jul 8, 2024
@weiji14 weiji14 marked this pull request as ready for review July 8, 2024 06:42
@weiji14 weiji14 enabled auto-merge (squash) July 8, 2024 06:43
@weiji14 weiji14 merged commit ebd2a31 into main Jul 8, 2024
15 checks passed
@weiji14 weiji14 deleted the ci/cargo branch July 8, 2024 08:20
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.

1 participant