43
43
with :
44
44
python-version-file : ./ibis-server/pyproject.toml
45
45
cache : ' poetry'
46
- - name : Install dependencies
47
- run : poetry install
46
+ - uses : extractions/setup-just@v2
48
47
- name : Cache Cargo
49
48
uses : actions/cache@v3
50
49
with :
55
54
~/.cargo/git/db/
56
55
wren-modeling-py/target/
57
56
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
62
57
- name : Install FreeTDS to be a ODBC driver
63
58
run : |
64
59
sudo apt-get update -y && sudo apt-get install -y unixodbc-dev freetds-dev tdsodbc
69
64
Setup = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so
70
65
EOF
71
66
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
74
69
- name : Run tests
75
70
env :
76
71
WREN_ENGINE_ENDPOINT : http://localhost:8080
@@ -81,17 +76,17 @@ jobs:
81
76
WREN_ENGINE_ENDPOINT : http://localhost:8080
82
77
TEST_BIG_QUERY_PROJECT_ID : ${{ secrets.TEST_BIG_QUERY_PROJECT_ID }}
83
78
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
85
80
- name : Test snowflake if need
86
81
if : contains(github.event.pull_request.labels.*.name, 'snowflake')
87
82
env :
88
83
WREN_ENGINE_ENDPOINT : http://localhost:8080
89
84
SNOWFLAKE_USER : ${{ secrets.SNOWFLAKE_USER }}
90
85
SNOWFLAKE_PASSWORD : ${{ secrets.SNOWFLAKE_PASSWORD }}
91
86
SNOWFLAKE_ACCOUNT : ${{ secrets.SNOWFLAKE_ACCOUNT }}
92
- run : poetry run pytest -m snowflake
87
+ run : just test snowflake
93
88
- name : Test trino if need
94
89
if : contains(github.event.pull_request.labels.*.name, 'trino')
95
90
env :
96
91
WREN_ENGINE_ENDPOINT : http://localhost:8080
97
- run : poetry run pytest -m trino
92
+ run : just test trino
0 commit comments