diff --git a/.github/workflows/coverage_report.yml b/.github/workflows/coverage_report.yml index 43281674..cdca082e 100644 --- a/.github/workflows/coverage_report.yml +++ b/.github/workflows/coverage_report.yml @@ -19,9 +19,14 @@ jobs: uses: AnimMouse/setup-ffmpeg@v1 - name: Install dependencies + # install all requirements. Note that the full requirements are installed separately + # so the job does not fail if one of the packages cannot be installed. This allows + # testing the package for newer python version even when some of the optional + # packages are not yet available. run: | python -m pip install --upgrade pip - pip install -r tests/requirements_full.txt + pip install -r requirements.txt + cat tests/requirements_full.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -n 1 -I % sh -c "pip install % || true" pip install -r tests/requirements.txt - name: Generate serial coverage report diff --git a/.github/workflows/tests_types.yml b/.github/workflows/tests_types.yml index 93926f4b..6d338032 100644 --- a/.github/workflows/tests_types.yml +++ b/.github/workflows/tests_types.yml @@ -19,11 +19,15 @@ jobs: python-version: ${{ matrix.pyversion }} - name: Install dependencies - # install all requirements + # install all requirements. Note that the full requirements are installed separately + # so the job does not fail if one of the packages cannot be installed. This allows + # testing the package for newer python version even when some of the optional + # packages are not yet available. run: | python -m pip install --upgrade pip + pip install -r requirements.txt + cat tests/requirements_full.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -n 1 -I % sh -c "pip install % || true" pip install -r tests/requirements.txt - pip install -r tests/requirements_full.txt pip install types-PyYAML - name: Test types with mypy