Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/HH-170741' into EXP-78260
Browse files Browse the repository at this point in the history
  • Loading branch information
HH ReleaseBot committed Aug 11, 2023
2 parents 3e8d523 + 3b864c6 commit 7598956
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
---
version: 2
updates:
- package-ecosystem: pip # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: weekly
34 changes: 34 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Python package
'on':
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version-file: pyproject.toml
cache: pip
cache-dependency-path: |
poetry.lock
- name: Install poetry
run: |
python -m pip install poetry
- name: Install package
run: |
poetry install
- name: Test with pytest
run: |
python -m poetry run pytest
7 changes: 4 additions & 3 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ def setup_class(cls):
cassandra_dir = '.cassandra'
if os.path.exists(PROJECT_ROOT + '/' + cassandra_dir):
shutil.rmtree(PROJECT_ROOT + '/' + cassandra_dir, ignore_errors=True)
cls.ccm_cluster = ccmlib.cluster.Cluster(f'{PROJECT_ROOT}', '.cassandra', cassandra_version='2.2.6')
node = cls.ccm_cluster.populate(1).start()[0][0].network_interfaces['binary']
cls.cluster = Cluster(contact_points=[node[0]], port=node[1])
cls.ccm_cluster = ccmlib.cluster.Cluster(f'{PROJECT_ROOT}', '.cassandra', cassandra_version='4.0.7')
nodes = cls.ccm_cluster.populate(1).start(no_wait=True, verbose=True,)
rpc_address, native_transport_port = nodes[0][0].network_interfaces['binary']
cls.cluster = Cluster(contact_points=[rpc_address], port=native_transport_port)

@classmethod
def teardown_class(cls):
Expand Down

0 comments on commit 7598956

Please sign in to comment.