Skip to content

Commit

Permalink
Use include to handle uncertainties testing
Browse files Browse the repository at this point in the history
By using `include` directive, we can add a special case to the matrix of possibilities.  In this case we add to the matrix the case where pandas>=2.1.0 and pint>=0.23rc0, which are both necessary for the UFloat array changes to work.

Signed-off-by: Michael Tiemann <[email protected]>
  • Loading branch information
MichaelTiemannOSC committed Sep 19, 2023
1 parent 108cb71 commit a5758e7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci-pint-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
numpy: ["numpy>=1.20.3,<2.0.0"]
pandas: ["pandas==2.0.2", ]
pint: ["pint>=0.21.1"]
uncertainties: [ "pint==0.23rc0 pandas==2.1.0 uncertainties==3.1.7", ]
include:
- pandas: "pandas==2.1.0"
pint: "pint>=0.23rc0"
uncertainties: "uncertainties==3.1.7"

runs-on: ubuntu-latest

Expand Down Expand Up @@ -59,7 +62,7 @@ jobs:

- name: Install uncertainties
if: ${{ matrix.uncertainties != null }}
run: pip install ${{matrix.uncertainties}}
run: pip install "${{matrix.uncertainties}}"

- name: Run Tests
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci-pint-pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
numpy: ["numpy>=1.20.3,<2.0.0"]
pandas: ["pandas==2.0.2", ]
pint: ["pint>=0.21.1"]
uncertainties: [ "pint==0.23rc0 pandas==2.1.0 uncertainties==3.1.7", ]
include:
- pandas: "pandas==2.1.0"
pint: "pint>=0.23rc0"
uncertainties: "uncertainties==3.1.7"

runs-on: ubuntu-latest

Expand Down Expand Up @@ -59,7 +62,7 @@ jobs:

- name: Install uncertainties
if: ${{ matrix.uncertainties != null }}
run: pip install ${{matrix.uncertainties}}
run: pip install "${{matrix.uncertainties}}"

- name: Run Tests
run: |
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ jobs:
matrix:
python-version: [3.9, "3.10", "3.11"]
numpy: ["numpy>=1.20.3,<2.0.0"]
pandas: ["pandas==2.0.2", "pandas==2.1.0" ]
pint: ["pint>=0.21.1", "pint==0.22"]
uncertainties: [ "pint==0.23rc0 pandas==2.1.0 uncertainties==3.1.7", ]
pandas: ["pandas==2.0.2", "pandas>=2.1.0" ]
pint: ["pint>=0.21.1,<0.22", "pint==0.22", "pint>=0.23rc0"]
include:
- pandas: "pandas>=2.1.0"
pint: "pint>=0.23rc0"
uncertainties: "uncertainties==3.1.7"

runs-on: ubuntu-latest

Expand Down Expand Up @@ -60,7 +63,7 @@ jobs:

- name: Install uncertainties
if: ${{ matrix.uncertainties != null }}
run: pip install ${{matrix.uncertainties}}
run: pip install "${{matrix.uncertainties}}"

- name: Run Tests
run: |
Expand Down

0 comments on commit a5758e7

Please sign in to comment.