Skip to content

Commit be84d47

Browse files
committed
ci: run sqllogictest binary from crate dir
1 parent 1b4dbee commit be84d47

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/extended.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,43 +35,42 @@ on:
3535
# support extended test suite for release candidate branches,
3636
# it is not expected to have many changes in these branches,
3737
# so running extended tests is not a burden
38-
- 'branch-*'
38+
- "branch-*"
3939
# Also run for changes to some critical areas that are most likely
4040
# to trigger errors in extended tests
4141
pull_request:
42-
branches: [ '**' ]
42+
branches: ["**"]
4343
paths:
44-
- 'datafusion/physical*/**/*.rs'
45-
- 'datafusion/expr*/**/*.rs'
46-
- 'datafusion/optimizer/**/*.rs'
47-
- 'datafusion-testing'
48-
- '.github/workflows/extended.yml'
49-
- 'Cargo.toml'
44+
- "datafusion/physical*/**/*.rs"
45+
- "datafusion/expr*/**/*.rs"
46+
- "datafusion/optimizer/**/*.rs"
47+
- "datafusion-testing"
48+
- ".github/workflows/extended.yml"
49+
- "Cargo.toml"
5050
workflow_dispatch:
5151
inputs:
5252
pr_number:
53-
description: 'Pull request number'
53+
description: "Pull request number"
5454
type: string
5555
check_run_id:
56-
description: 'Check run ID for status updates'
56+
description: "Check run ID for status updates"
5757
type: string
5858
pr_head_sha:
59-
description: 'PR head SHA'
59+
description: "PR head SHA"
6060
type: string
6161

6262
permissions:
6363
contents: read
6464
checks: write
6565

6666
jobs:
67-
6867
# Check crate compiles and base cargo check passes
6968
linux-build-lib:
7069
name: linux build test
7170
runs-on: ubuntu-latest
7271
# note: do not use amd/rust container to preserve disk space
7372
steps:
74-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
73+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7574
with:
7675
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
7776
submodules: true
@@ -95,13 +94,13 @@ jobs:
9594
runs-on: ubuntu-latest
9695
# note: do not use amd/rust container to preserve disk space
9796
steps:
98-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
97+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9998
with:
10099
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
101100
submodules: true
102101
fetch-depth: 1
103102
- name: Free Disk Space (Ubuntu)
104-
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
103+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
105104
- name: Install Rust
106105
run: |
107106
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@@ -139,7 +138,7 @@ jobs:
139138
container:
140139
image: amd64/rust
141140
steps:
142-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
141+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
143142
with:
144143
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
145144
submodules: true
@@ -160,7 +159,7 @@ jobs:
160159
container:
161160
image: amd64/rust
162161
steps:
163-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
162+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
164163
with:
165164
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
166165
submodules: true
@@ -179,7 +178,8 @@ jobs:
179178
echo "TEST_BIN=$TEST_BIN" >> "$GITHUB_ENV"
180179
- name: Run sqllogictest
181180
run: |
182-
"$TEST_BIN" --include-sqlite
181+
(
182+
cd datafusion/sqllogictest
183+
"$TEST_BIN" --include-sqlite
184+
)
183185
cargo clean
184-
185-

0 commit comments

Comments
 (0)