Skip to content

Commit 1e3b388

Browse files
authored
Add CI (#10)
* Add CI * allow dead code * remove tag file
1 parent 7007724 commit 1e3b388

File tree

6 files changed

+39
-3
lines changed

6 files changed

+39
-3
lines changed

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
lint-test:
11+
name: Lint and Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Install Rust
17+
uses: dtolnay/rust-toolchain@stable
18+
with:
19+
components: rustfmt, clippy
20+
21+
- uses: Swatinem/rust-cache@v2
22+
23+
- name: Cargo fmt
24+
run: cargo fmt --all -- --check
25+
26+
- name: "clippy --all"
27+
run: cargo clippy --all --all-features --tests -- -D warnings
28+
29+
- name: "cargo check"
30+
run: cargo check --all --all-features
31+
32+
- name: "cargo test"
33+
run: |
34+
cargo test --all
35+
cargo test --all --all-features

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ bytes = "1.7.0"
99
flate2 = "1.0.20"
1010
futures = "0.3.31"
1111
jpeg = { package = "jpeg-decoder", version = "0.3.0", default-features = false }
12-
ndarray = "*"
13-
num_enum = "*"
12+
num_enum = "0.7.3"
1413
object_store = "0.11"
1514
thiserror = "1"
1615
tiff = "0.9"

src/geo/geo_key_directory.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(dead_code)]
2+
13
use std::collections::HashMap;
24

35
use num_enum::{IntoPrimitive, TryFromPrimitive};

src/geo/partial_reads.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[allow(dead_code)]
12
struct TileMetadata {
23
/// top left corner of the partial read
34
tlx: f64,

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ mod decoder;
44
pub mod error;
55
pub mod geo;
66
mod ifd;
7-
mod tag;
87

98
pub use async_reader::{AsyncFileReader, ObjectReader};
109
pub use cog::COGReader;

src/tag.rs

Whitespace-only changes.

0 commit comments

Comments
 (0)