diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index 7734155..574dddf 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -6,6 +6,9 @@ jobs: test: runs-on: ubuntu-latest + env: + ES_SERVER: ${{ secrets.ES_SERVER }} + steps: - name: Checkout code uses: actions/checkout@v2 @@ -13,13 +16,13 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.11 - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt # Replace with your requirements file if applicable + pip install -r fmatch/requirements.txt - name: Run pytest run: | - python -m pytest pytest fmatch/tests --cov --random-order + python -m pytest fmatch/tests --cov --random-order diff --git a/fmatch/requirements.txt b/fmatch/requirements.txt index a800fe3..2777deb 100644 --- a/fmatch/requirements.txt +++ b/fmatch/requirements.txt @@ -21,7 +21,7 @@ mccabe==0.7.0 mdurl==0.1.2 more-itertools==10.2.0 nh3==0.2.15 -numpy==1.26.3 +numpy==1.24.0 packaging==23.2 pandas==2.1.4 pip-name==1.0.2 diff --git a/fmatch/tests/test_matcher.py b/fmatch/tests/test_matcher.py index 439d007..8689b5e 100644 --- a/fmatch/tests/test_matcher.py +++ b/fmatch/tests/test_matcher.py @@ -3,6 +3,7 @@ """ #pylint: disable = redefined-outer-name #pylint: disable = missing-function-docstring +#pylint: disable = import-error import os from elasticsearch.exceptions import NotFoundError