Use CLang to build Reppy

This commit is contained in:
Adrián Chaves 2023-01-02 13:41:08 +01:00
parent deaf1fb6cf
commit c4d7f5e7a9
2 changed files with 20 additions and 5 deletions

View File

@ -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: |

View File

@ -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: |