diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3c9dc83..f8e29ac 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -26,10 +26,18 @@ jobs: ~/.cache/pre-commit ~/.cache/pip key: ${{ matrix.python_version }}-${{ hashFiles('.pre-commit-config.yaml') }}-${{ hashFiles('setup.py') }} + + - name: Use latest pip + run: python -m pip install --upgrade pip + - name: Pre-install PyYAML without --pre + if: ${{ startsWith(matrix.python_version, 'pypy') }} + # Temporary workaround: + # PyYAML fails to build with Cython 3.0.0a + # see https://github.com/yaml/pyyaml/issues/601 + run: pip install PyYAML - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install --pre -e '.[dev]' + run: pip install --pre -e '.[dev]' + - name: Pre-commit hooks if: ${{ matrix.python_version != 'pypy3' && matrix.python_version != '3.6' }} run: pre-commit run --all-files