Skip to content

Commit 687decd

Browse files
committed
exclude combinations of NumPy and Python versions that don't build on Github actions
1 parent 0daad3c commit 687decd

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,22 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [ ubuntu-latest ]
15-
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
15+
python-version: [ "3.7", "3.8", "3.9" ]
1616
numpy-version: [ "1.16", "1.17", "1.18", "1.19", "1.20", "1.21" ]
17-
17+
exclude:
18+
- python-version: "3.9"
19+
numpy-version: "1.16"
20+
os: ubuntu-latest
21+
- python-version: "3.9"
22+
numpy-version: "1.17"
23+
os: ubuntu-latest
24+
- python-version: "3.8"
25+
numpy-version: "1.17"
26+
os: ubuntu-latest
27+
include:
28+
- python-version: "3.10"
29+
numpy-version: "1.21"
30+
os: ubuntu-latest
1831
steps:
1932
- uses: actions/checkout@v2
2033

doc/user/installation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Quantities has a few dependencies:
1111
* Python_ (>=3.7)
1212
* NumPy_ (>=1.16)
1313

14+
(bearing in mind that not all combinations of Python and NumPy versions necessarily work).
15+
1416

1517
Source Code Installation
1618
========================

quantities/markup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def format_units_latex(udict,font='mathrm',mult=r'\\cdot',paren=False):
100100
By default this is the latex \\cdot symbol. Other useful
101101
options may be '' or '*'.
102102
103-
If paren=True, encapsulate the string in '\\left(' and '\right)'
103+
If paren=True, encapsulate the string in '\\left(' and '\\right)'
104104
105105
The result of format_units_latex is encapsulated in $. This allows the result
106106
to be used directly in Latex in normal text mode, or in Matplotlib text via the

0 commit comments

Comments
 (0)