-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
86 changed files
with
3,081 additions
and
333 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: On Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
test: | ||
runs-on: macos-latest | ||
strategy: | ||
max-parallel: 2 | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
new-python-protobuf: ["true"] | ||
include: | ||
- python-version: "3.7" | ||
new-python-protobuf: "false" | ||
|
||
env: | ||
TEST_AUTH_TOKEN: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }} | ||
TEST_CACHE_NAME: python-integration-test-${{ matrix.python-version }}-${{ matrix.new-python-protobuf }}-${{ github.sha }} | ||
TEST_VECTOR_INDEX_NAME: python-integration-test-vector-${{ matrix.python-version }}-${{ matrix.new-python-protobuf }}-${{ github.sha }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Commitlint and Other Shared Build Steps | ||
uses: momentohq/standards-and-practices/github-actions/shared-build@gh-actions-v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Bootstrap poetry | ||
run: | | ||
curl -sL https://install.python-poetry.org | python - -y --version 1.3.1 | ||
- name: Configure poetry | ||
run: /Users/runner/.local/bin/poetry config virtualenvs.in-project true | ||
|
||
- name: Install dependencies | ||
run: /Users/runner/.local/bin/poetry install | ||
|
||
- name: Install Old Protobuf | ||
# Exercises the wire types generated against the old protobuf library | ||
if: matrix.new-python-protobuf == 'false' | ||
run: /Users/runner/.local/bin/poetry add "protobuf<3.20" | ||
|
||
- name: Run mypy | ||
# mypy has inconsistencies between 3.7 and the rest; default to lowest common denominator | ||
if: matrix.python-version == '3.7' | ||
run: /Users/runner/.local/bin/poetry run mypy src tests | ||
|
||
- name: Run flake8 | ||
run: /Users/runner/.local/bin/poetry run flake8 src tests | ||
|
||
- name: Run black | ||
run: /Users/runner/.local/bin/poetry run black src tests --check --diff | ||
|
||
- name: Run isort | ||
run: /Users/runner/.local/bin/poetry run isort . --check --diff | ||
|
||
- name: Run tests | ||
run: /Users/runner/.local/bin/poetry run pytest tests/momento/vector_index_client -p no:sugar -q |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ dist/ | |
momento-examples-env/ | ||
|
||
*.egg-info | ||
build | ||
build | ||
certs |
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 |
---|---|---|
@@ -1 +1 @@ | ||
momento==1.7.1 | ||
momento==1.8.0 |
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
Oops, something went wrong.