From 842004d8dc14894dd074b797d2d98c080867ef9a Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 19 Aug 2024 17:26:23 -0400 Subject: [PATCH] ci testing with different python versions --- .github/workflows/ci-python-test.yml | 26 ++++++++++---------------- comptox_ai/db/graph_db.py | 4 ++++ 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci-python-test.yml b/.github/workflows/ci-python-test.yml index 9a502a3..d1a93f2 100644 --- a/.github/workflows/ci-python-test.yml +++ b/.github/workflows/ci-python-test.yml @@ -14,29 +14,23 @@ jobs: # Define the type of runner to use runs-on: ubuntu-latest - # # Define strategy for matrix builds - # strategy: - # matrix: - # # You can change the default value as needed - # python-version: ['3.8', '3.9', '3.10'] + # Define strategy for matrix builds + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10'] steps: # Step: Check out the repository's code to the runner - name: checkout-code uses: actions/checkout@v3 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 + # Step: Set up Python environment + - name: setup-python-env ${{ matrix.python-version }} + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{ matrix.python-version }} - # # Step: Set up Python environment - # - name: setup-python-env ${{ matrix.python-version }} - # uses: actions/setup-python@v4 - # with: - # python-version: ${{ matrix.python-version }} - - # Step: Install project dependencies using pip + # Step: Install project dependencies - name: Install dependencies run: | $CONDA/bin/conda env update --file environment.yml --name base @@ -45,4 +39,4 @@ jobs: # Step: Run tests with Pytest - name: run-tests run: | - $CONDA/bin/pytest -vv + $CONDA/bin/pytest diff --git a/comptox_ai/db/graph_db.py b/comptox_ai/db/graph_db.py index a2dacee..9919183 100644 --- a/comptox_ai/db/graph_db.py +++ b/comptox_ai/db/graph_db.py @@ -1004,3 +1004,7 @@ def find_shortest_paths(self, node1, node2, cleaned=True): ---------- node1 : comptox """ + + + +