Skip to content

chore(ci): setup just #735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .github/workflows/ibis-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ jobs:
with:
python-version-file: ./ibis-server/pyproject.toml
cache: 'poetry'
- name: Install dependencies
run: poetry install
- uses: extractions/setup-just@v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

- name: Cache Cargo
uses: actions/cache@v3
with:
Expand All @@ -55,10 +54,6 @@ jobs:
~/.cargo/git/db/
wren-modeling-py/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('wren-modeling-py/Cargo.lock') }}
- uses: PyO3/maturin-action@v1
with:
working-directory: wren-modeling-py
command: build
- name: Install FreeTDS to be a ODBC driver
run: |
sudo apt-get update -y && sudo apt-get install -y unixodbc-dev freetds-dev tdsodbc
Expand All @@ -69,8 +64,8 @@ jobs:
Setup = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so
EOF
sudo odbcinst -i -d -f free.tds.ini
- name: Install wren-modeling-py
run: poetry run pip install ../wren-modeling-py/target/wheels/wren_modeling_py-*.whl
- name: Install dependencies
run: just install
- name: Run tests
env:
WREN_ENGINE_ENDPOINT: http://localhost:8080
Expand All @@ -81,17 +76,17 @@ jobs:
WREN_ENGINE_ENDPOINT: http://localhost:8080
TEST_BIG_QUERY_PROJECT_ID: ${{ secrets.TEST_BIG_QUERY_PROJECT_ID }}
TEST_BIG_QUERY_CREDENTIALS_BASE64_JSON: ${{ secrets.TEST_BIG_QUERY_CREDENTIALS_BASE64_JSON }}
run: poetry run pytest -m bigquery
run: just test bigquery
- name: Test snowflake if need
if: contains(github.event.pull_request.labels.*.name, 'snowflake')
env:
WREN_ENGINE_ENDPOINT: http://localhost:8080
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
run: poetry run pytest -m snowflake
run: just test snowflake
- name: Test trino if need
if: contains(github.event.pull_request.labels.*.name, 'trino')
env:
WREN_ENGINE_ENDPOINT: http://localhost:8080
run: poetry run pytest -m trino
run: just test trino
Loading