From a5ebf99e7527a407ef097905091674595af218af Mon Sep 17 00:00:00 2001 From: guptadev21 Date: Thu, 24 Oct 2024 14:48:28 +0530 Subject: [PATCH] fix: action --- .github/workflows/python-compatibility.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-compatibility.yml b/.github/workflows/python-compatibility.yml index 0c2c98d..bb57ce9 100644 --- a/.github/workflows/python-compatibility.yml +++ b/.github/workflows/python-compatibility.yml @@ -1,12 +1,12 @@ name: 🐍 Python Compatibility Check -on: [ push ] +on: [push] jobs: python-compatibility: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.8.10', '3.9', '3.10', '3.11', '3.12', '3.13' ] + python-version: ['3.8.10', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Checkout Code uses: actions/checkout@v4 @@ -22,5 +22,13 @@ jobs: python -m pip install --upgrade pip pip install pytest - - name: PyTest - run: pytest tests/test_get_token.py \ No newline at end of file + - name: Install local package using uv + run: | + uv pip install -e . + + - name: Set PYTHONPATH + run: | + export PYTHONPATH=$PYTHONPATH:$(pwd) + + - name: Run PyTest + run: pytest tests/test_get_token.py