|
17 | 17 |
|
18 | 18 | - uses: dtolnay/rust-toolchain@stable |
19 | 19 |
|
| 20 | + - name: Cache Rust dependencies |
| 21 | + uses: Swatinem/rust-cache@v2 |
| 22 | + |
20 | 23 | - name: Install Protoc |
21 | 24 | uses: arduino/setup-protoc@v3 |
22 | 25 | with: |
|
44 | 47 |
|
45 | 48 | - uses: dtolnay/rust-toolchain@stable |
46 | 49 |
|
| 50 | + - name: Cache Rust dependencies |
| 51 | + uses: Swatinem/rust-cache@v2 |
| 52 | + |
47 | 53 | - name: Build with ${{ matrix.features }} |
48 | 54 | run: | |
49 | 55 | if [ "${{ matrix.features }}" = "no-default-features" ]; then |
|
65 | 71 |
|
66 | 72 | - uses: dtolnay/rust-toolchain@stable |
67 | 73 |
|
| 74 | + - name: Cache Rust dependencies |
| 75 | + uses: Swatinem/rust-cache@v2 |
| 76 | + |
68 | 77 | - name: Pull the Postgres/MySQL images |
69 | 78 | run: | |
70 | 79 | docker pull ${{ env.PG_DOCKER_IMAGE }} |
@@ -116,23 +125,28 @@ jobs: |
116 | 125 |
|
117 | 126 | - uses: dtolnay/rust-toolchain@stable |
118 | 127 |
|
| 128 | + - name: Cache Rust dependencies |
| 129 | + uses: Swatinem/rust-cache@v2 |
| 130 | + with: |
| 131 | + workspaces: | |
| 132 | + . |
| 133 | + python |
| 134 | +
|
119 | 135 | - uses: astral-sh/setup-uv@v5 |
120 | 136 | with: |
121 | 137 | enable-cache: true |
| 138 | + cache-dependency-glob: 'python/pyproject.toml' |
122 | 139 |
|
123 | 140 | - name: Install ODBC, Sqlite and Roapi |
124 | 141 | run: | |
125 | 142 | sudo apt-get install -y unixodbc-dev libsqliteodbc |
126 | 143 | sudo apt-get install -y libsqlite3-dev |
127 | 144 | cargo install --locked --git https://github.com/roapi/roapi --branch main --bins roapi |
128 | 145 |
|
129 | | - - name: Build Python package |
| 146 | + - name: Build Python package and run tests |
130 | 147 | run: | |
131 | 148 | cd python |
132 | 149 | uv sync --dev --no-install-package datafusion |
133 | | - uv run --no-project maturin develop --uv |
134 | | -
|
135 | | - - name: Run Python tests |
136 | | - run: | |
137 | | - cd python/python/tests |
| 150 | + uv run --no-project maturin develop --uv --release |
| 151 | + cd python/tests |
138 | 152 | uv run --no-project pytest -v . |
0 commit comments