Merge pull request #573 from skirpichev/test-gmpy

Add optional gmpy deps & run tests with gmpy
This commit is contained in:
Fredrik Johansson
2021-03-04 12:17:38 +01:00
committed by GitHub
2 changed files with 10 additions and 1 deletions
+8 -1
View File
@@ -12,16 +12,23 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install libs
run: |
sudo apt update
sudo apt install libmpc-dev
- name: Install dependencies
run: |
pip install --upgrade --force-reinstall setuptools pip
pip install --upgrade .[develop]
pip install --upgrade .[develop,gmpy]
- name: Linting with pycodestyle, etc
run: |
python -We:invalid -m compileall -f mpmath -q
pycodestyle
- name: Tests
run: pytest
- name: Remove gmpy on 2.7
if: matrix.python-version == 2.7
run: pip uninstall -y gmpy2
- name: Run coverage tests & upload results
env:
PYTEST_ADDOPTS: --cov mpmath
+2
View File
@@ -35,6 +35,8 @@ develop = %(tests)s
pytest-cov
codecov
wheel
gmpy =
gmpy2>=2.1.0a4; platform_python_implementation!="PyPy"
[pycodestyle]
select = E101,W191,W291,W293,E111,E112,E113,W292,W391
exclude = .eggs,.git