From c4d7f5e7a996e7e5e5c32e947c026d29df5315d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Mon, 2 Jan 2023 13:41:08 +0100 Subject: [PATCH] Use CLang to build Reppy --- .github/workflows/checks.yml | 12 ++++++++++-- .github/workflows/tests-ubuntu.yml | 13 ++++++++++--- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 8c1ae4bd3..e5b0306b3 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -14,10 +14,12 @@ jobs: - python-version: "3.11" env: TOXENV: flake8 - # Pylint requires installing reppy, which does not support Python 3.9 - # https://github.com/seomoz/reppy/issues/122 + # Pylint requires installing reppy, which: + # - Does not support Python 3.9: https://github.com/seomoz/reppy/issues/122 + # - Requires CLang to build https://github.com/seomoz/reppy/issues/132 - python-version: 3.8 env: + CC: clang TOXENV: pylint - python-version: 3.7 env: @@ -37,6 +39,12 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Set up Clang + uses: egor-tensin/setup-clang@v1 + with: + version: latest + platform: x64 + - name: Run check env: ${{ matrix.env }} run: | diff --git a/.github/workflows/tests-ubuntu.yml b/.github/workflows/tests-ubuntu.yml index 9c3ce8115..4ad722ad5 100644 --- a/.github/workflows/tests-ubuntu.yml +++ b/.github/workflows/tests-ubuntu.yml @@ -38,11 +38,12 @@ jobs: env: TOXENV: pypy3-pinned - # extras - # extra-deps includes reppy, which does not support Python 3.9 - # https://github.com/seomoz/reppy/issues/122 + # extra-deps includes reppy, which: + # - Does not support Python 3.9: https://github.com/seomoz/reppy/issues/122 + # - Requires CLang to build https://github.com/seomoz/reppy/issues/132 - python-version: 3.8 env: + CC: clang TOXENV: extra-deps steps: @@ -59,6 +60,12 @@ jobs: sudo apt-get update sudo apt-get install libxml2-dev libxslt-dev + - name: Set up Clang + uses: egor-tensin/setup-clang@v1 + with: + version: latest + platform: x64 + - name: Run tests env: ${{ matrix.env }} run: |