-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ci file from geopolars/geoarrow (#3)
* Add ci * Move geos up * fix clippy
- Loading branch information
1 parent
8c383b3
commit 276f15e
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Rust Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
fmt: | ||
name: rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt, clippy | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Cargo fmt | ||
run: cargo fmt --all -- --check | ||
|
||
# Note not sure why this is needed | ||
- name: Install protobuf | ||
run: | | ||
sudo apt-get install libprotobuf-dev protobuf-compiler | ||
- run: sudo apt install libgeos-dev | ||
|
||
- name: "clippy --all" | ||
run: cargo clippy --all --all-features --tests -- -D warnings | ||
|
||
- name: "cargo check" | ||
run: cargo check --all --all-features | ||
|
||
- name: "cargo test" | ||
run: cargo test --all --all-features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters