Kaynağa Gözat

pipeline: install missing libgpiod

Fabian Peter Hammerle 3 yıl önce
ebeveyn
işleme
5d5418adaf
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      .github/workflows/python.yml

+ 4 - 1
.github/workflows/python.yml

@@ -31,7 +31,7 @@ jobs:
     - run: pipenv graph
     - run: pipenv run black --check .
   tests:
-    runs-on: ubuntu-18.04
+    runs-on: ubuntu-20.04
     strategy:
       matrix:
         python-version:
@@ -46,6 +46,9 @@ jobs:
     - uses: actions/setup-python@v1
       with:
         python-version: ${{ matrix.python-version }}
+    - run: sudo apt-get update
+    # https://github.com/hhk7734/python3-gpiod/blob/v1.2.1/py_src/gpiod/libgpiod/__init__.py#L54
+    - run: sudo apt-get install --yes --no-install-recommends libgpiod2
     - run: pip install --upgrade pipenv==2020.8.13
     - run: pipenv install --python "$PYTHON_VERSION" --deploy --dev
       env: