forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Import grpc only for type checking in errors.py (feast-dev#4533)
* fix: grpc import error Signed-off-by: tokoko <[email protected]> * fix: loosen protobuf build requirement Signed-off-by: tokoko <[email protected]> * fix: pin grpcio-tools version Signed-off-by: tokoko <[email protected]> * fix: revert build-system in pyproject Signed-off-by: tokoko <[email protected]> * fix: add manual install of setuptools and grpcio-tools Signed-off-by: tokoko <[email protected]> * fix: remove incorrect pixi call Signed-off-by: tokoko <[email protected]> * fix: add in-function imports in errors.py Signed-off-by: tokoko <[email protected]> * fix: formatting Signed-off-by: tokoko <[email protected]> * fix: merge changes from master Signed-off-by: tokoko <[email protected]> * fix: add line endings Signed-off-by: tokoko <[email protected]> * fix: add line endings Signed-off-by: tokoko <[email protected]> * chore: remove proto generation from make commands Signed-off-by: tokoko <[email protected]> --------- Signed-off-by: tokoko <[email protected]>
- Loading branch information
Showing
5 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: smoke-tests | ||
|
||
on: [pull_request] | ||
jobs: | ||
unit-test-python: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.9", "3.10", "3.11"] | ||
os: [ ubuntu-latest ] | ||
env: | ||
OS: ${{ matrix.os }} | ||
PYTHON: ${{ matrix.python-version }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Python | ||
id: setup-python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Install uv | ||
run: | | ||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Get uv cache dir | ||
id: uv-cache | ||
run: | | ||
echo "::set-output name=dir::$(uv cache dir)" | ||
- name: uv cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.uv-cache.outputs.dir }} | ||
key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-uv-${{ hashFiles(format('**/py{0}-ci-requirements.txt', env.PYTHON)) }} | ||
- name: Install dependencies | ||
run: make install-python-dependencies-uv | ||
- name: Test Imports | ||
run: python -c "from feast import cli" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters