|
15 | 15 | CARGO_TERM_VERBOSE: true |
16 | 16 |
|
17 | 17 | jobs: |
18 | | - test-ubuntu: |
19 | | - runs-on: ubuntu-latest |
20 | | - strategy: |
21 | | - matrix: |
22 | | - args: |
23 | | - - "-p stac" |
24 | | - - "-p stac -F reqwest" |
25 | | - - "-p stac -F geoarrow" |
26 | | - - "-p stac -F geoparquet" |
27 | | - - "-p stac -F geoparquet-compression" |
28 | | - - "-p stac-api" |
29 | | - - "-p stac -p stac-api -F geo" |
30 | | - - "-p stac-async" |
31 | | - - "-p stac-cli --no-default-features" |
32 | | - - "-p stac-cli --no-default-features -F geoparquet" |
33 | | - - "-p stac-duckdb -F duckdb/bundled" |
34 | | - - "-p stac-server" |
35 | | - - "-p stac-server -F axum" |
36 | | - - "-p stac-validate" |
37 | | - steps: |
38 | | - - uses: actions/checkout@v4 |
39 | | - - name: Set up Rust cache |
40 | | - uses: Swatinem/rust-cache@v2 |
41 | | - - name: Test |
42 | | - run: cargo test ${{ matrix.args }} |
43 | | - test-ubuntu-with-gdal: |
| 18 | + test: |
44 | 19 | runs-on: ubuntu-latest |
45 | 20 | steps: |
46 | 21 | - uses: actions/checkout@v4 |
|
50 | 25 | sudo apt-get update |
51 | 26 | sudo apt-get install libgdal-dev |
52 | 27 | - name: Test |
53 | | - run: cargo test -p stac -p stac-duckdb -p stac-cli --all-features -F duckdb/bundled |
54 | | - test-ubuntu-with-pgstac: |
55 | | - runs-on: ubuntu-latest |
56 | | - services: |
57 | | - pgstac: |
58 | | - image: ghcr.io/stac-utils/pgstac:v0.8.6 |
59 | | - env: |
60 | | - POSTGRES_USER: username |
61 | | - POSTGRES_PASSWORD: password |
62 | | - POSTGRES_DB: postgis |
63 | | - PGUSER: username |
64 | | - PGPASSWORD: password |
65 | | - PGDATABASE: postgis |
66 | | - ports: |
67 | | - - 5432:5432 |
68 | | - steps: |
69 | | - - uses: actions/checkout@v4 |
70 | | - - uses: Swatinem/rust-cache@v2 |
71 | | - - name: Test |
72 | | - run: cargo test -p pgstac |
73 | | - test-windows: |
74 | | - runs-on: windows-latest |
75 | | - steps: |
76 | | - - uses: actions/checkout@v4 |
77 | | - - uses: Swatinem/rust-cache@v2 |
78 | | - - name: Test |
79 | | - run: cargo test --no-default-features -F reqwest -F geo |
80 | | - test-macos: |
81 | | - runs-on: macos-latest |
82 | | - steps: |
83 | | - - uses: actions/checkout@v4 |
84 | | - - uses: Swatinem/rust-cache@v2 |
85 | | - - name: Test |
86 | | - run: cargo test --no-default-features -F reqwest -F geo |
87 | | - test-python: |
88 | | - runs-on: ubuntu-latest |
89 | | - steps: |
90 | | - - uses: actions/checkout@v4 |
91 | | - - uses: Swatinem/rust-cache@v2 |
92 | | - - uses: actions/setup-python@v5 |
93 | | - with: |
94 | | - python-version: 3.x |
95 | | - - name: Install dev requirements |
96 | | - run: pip install -r python/requirements-dev.txt |
97 | | - - name: Build |
98 | | - run: maturin build --manifest-path python/Cargo.toml --out dist |
99 | | - - name: Install stacrs |
100 | | - run: pip install stacrs --find-links dist --no-index |
101 | | - - name: Check |
102 | | - run: ruff check python && ruff format --check python && mypy python |
103 | | - - name: Test |
104 | | - run: pytest python/tests |
105 | | - test-python-cli: |
106 | | - runs-on: ubuntu-latest |
107 | | - steps: |
108 | | - - uses: actions/checkout@v4 |
109 | | - - uses: Swatinem/rust-cache@v2 |
110 | | - - uses: actions/setup-python@v5 |
111 | | - with: |
112 | | - python-version: 3.x |
113 | | - - name: Install dev requirements |
114 | | - run: pip install maturin |
115 | | - - name: Build |
116 | | - run: maturin build --manifest-path cli/Cargo.toml --out dist |
117 | | - - name: Install stacrs-cli |
118 | | - run: pip install stacrs-cli --find-links dist --no-index |
119 | | - - name: Smoke test |
120 | | - run: stacrs --version |
| 28 | + run: cargo test --lib |
121 | 29 | check: |
122 | 30 | runs-on: ubuntu-latest |
123 | 31 | steps: |
|
0 commit comments