Skip to content

Commit 35e4d6b

Browse files
authored
chore(ci): setup just (#735)
1 parent 965ed03 commit 35e4d6b

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/ibis-ci.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ jobs:
4343
with:
4444
python-version-file: ./ibis-server/pyproject.toml
4545
cache: 'poetry'
46-
- name: Install dependencies
47-
run: poetry install
46+
- uses: extractions/setup-just@v2
4847
- name: Cache Cargo
4948
uses: actions/cache@v3
5049
with:
@@ -55,10 +54,6 @@ jobs:
5554
~/.cargo/git/db/
5655
wren-modeling-py/target/
5756
key: ${{ runner.os }}-cargo-${{ hashFiles('wren-modeling-py/Cargo.lock') }}
58-
- uses: PyO3/maturin-action@v1
59-
with:
60-
working-directory: wren-modeling-py
61-
command: build
6257
- name: Install FreeTDS to be a ODBC driver
6358
run: |
6459
sudo apt-get update -y && sudo apt-get install -y unixodbc-dev freetds-dev tdsodbc
@@ -69,8 +64,8 @@ jobs:
6964
Setup = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so
7065
EOF
7166
sudo odbcinst -i -d -f free.tds.ini
72-
- name: Install wren-modeling-py
73-
run: poetry run pip install ../wren-modeling-py/target/wheels/wren_modeling_py-*.whl
67+
- name: Install dependencies
68+
run: just install
7469
- name: Run tests
7570
env:
7671
WREN_ENGINE_ENDPOINT: http://localhost:8080
@@ -81,17 +76,17 @@ jobs:
8176
WREN_ENGINE_ENDPOINT: http://localhost:8080
8277
TEST_BIG_QUERY_PROJECT_ID: ${{ secrets.TEST_BIG_QUERY_PROJECT_ID }}
8378
TEST_BIG_QUERY_CREDENTIALS_BASE64_JSON: ${{ secrets.TEST_BIG_QUERY_CREDENTIALS_BASE64_JSON }}
84-
run: poetry run pytest -m bigquery
79+
run: just test bigquery
8580
- name: Test snowflake if need
8681
if: contains(github.event.pull_request.labels.*.name, 'snowflake')
8782
env:
8883
WREN_ENGINE_ENDPOINT: http://localhost:8080
8984
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
9085
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
9186
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
92-
run: poetry run pytest -m snowflake
87+
run: just test snowflake
9388
- name: Test trino if need
9489
if: contains(github.event.pull_request.labels.*.name, 'trino')
9590
env:
9691
WREN_ENGINE_ENDPOINT: http://localhost:8080
97-
run: poetry run pytest -m trino
92+
run: just test trino

0 commit comments

Comments
 (0)