diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8ef0d3..6bab750 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,27 +9,27 @@ on: workflow_dispatch: jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Set up python id: setup-python uses: actions/setup-python@v2 with: python-version: 3.7 - - name: Install Poetry - uses: snok/install-poetry@v1 - with: - virtualenvs-in-project: true - uses: actions/checkout@v2 - name: Load cached venv id: cached-poetry-dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: .venv key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - name: Install dependencies - if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - run: poetry install --no-interaction --no-root + run: | + python -m pip install --upgrade pip + pip install poetry + sudo apt-get install libblas3 liblapack3 liblapack-dev libblas-dev gfortran libatlas-base-dev + poetry config --local virtualenvs.in-project true + poetry install --no-interaction --no-root - name: check quality run: | source .venv/bin/activate diff --git a/.prospector.yaml b/.prospector.yaml index 7c1855a..a644cdc 100644 --- a/.prospector.yaml +++ b/.prospector.yaml @@ -2,7 +2,7 @@ doc-warnings: false max-line-length: 120 ignore-paths: - tests - - connected_car_api + - psa_car_controller/psa/connected_car_api pycodestyle: disable: - E722 diff --git a/pyproject.toml b/pyproject.toml index 2abcf3e..9e55e31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ include = [ ] [tool.poetry.dependencies] -python = ">=3.7.0, <4.0.0" +python = ">=3.7.2, <4.0.0" paho-mqtt = ">=1.5.0" dash = ">=2.9.0, <3.0.0" dash-daq = "^0.5.0" @@ -38,11 +38,12 @@ urllib3 = ">=1.15.1 <2.0.0" importlib-metadata = {version = ">=1.7.0", python = "<3.8"} [tool.poetry.dev-dependencies] -prospector = ">=1.3.0" +prospector = "1.10.2" pre-commit = "^2.17.0" coverage = "^6.3.2" deepdiff = "^5.7.0" greenery = "^3.3.5" +autopep8 = "2.0.4" [build-system] requires = ["poetry-core>=1.0.0"]