Skip to content

Commit

Permalink
Merge pull request #27 from tigrisdata/main
Browse files Browse the repository at this point in the history
Merged by Reviewpad
  • Loading branch information
reviewpad[bot] authored May 22, 2023
2 parents 7e9b3c8 + bd93355 commit a258ab5
Show file tree
Hide file tree
Showing 10 changed files with 761 additions and 68 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,30 @@ jobs:
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dev dependencies
run: poetry install --no-root --with=dev
- name: Load cached package dependencies
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies if cache miss
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root --with=dev
- name: Install dependencies if poetry.lock changed
run: poetry install --no-interaction --with=dev
- name: Compile proto to generate API stubs
run: |
source $VENV
poetry run make generate
- name: Load cached pre-commit installation
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run linter
run: |
source $VENV
pre-commit run --color=always --show-diff-on-failure
pre-commit run -a --color=always --show-diff-on-failure
- name: Run tests with coverage
run: |
source $VENV
Expand Down Expand Up @@ -73,9 +87,9 @@ jobs:
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies if cache miss
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
run: poetry install --no-interaction --no-root --with=dev
- name: Install dependencies if poetry.lock changed
run: poetry install --no-interaction
run: poetry install --no-interaction --with=dev
- name: Compile proto to generate API stubs
run: |
source $VENV
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Python client for Tigris
## Installation

```commandline
pip install tigris-client-python>=1.0.0.b1
pip install tigrisdb
```

# Usage
Expand Down
42 changes: 21 additions & 21 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ branch = true
command_line = "-m unittest discover -s tests -p 'test_*.py'"

[tool.coverage.report]
fail_under = 40
fail_under = 70

[build-system]
requires = ["poetry-core"]
Expand Down
Loading

0 comments on commit a258ab5

Please sign in to comment.