@@ -16,13 +16,13 @@ jobs:
1616 strategy :
1717 matrix :
1818 os : [ubuntu-latest, macos-latest, windows-latest]
19- python-version : ["3.7 ", "3.8 ", "3.9 ", "3.10 ", "3.11 "]
19+ python-version : ["3.8 ", "3.9 ", "3.10 ", "3.11 ", "3.12 "]
2020
2121 steps :
22- - uses : actions/checkout@v3
22+ - uses : actions/checkout@v4
2323
2424 - name : Set up Python ${{ matrix.python-version }} for ${{ matrix.os }}
25- uses : actions/setup-python@v4
25+ uses : actions/setup-python@v5
2626 with :
2727 python-version : ${{ matrix.python-version }}
2828
@@ -47,14 +47,20 @@ jobs:
4747 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4848 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4949
50+ - uses : ConorMacBride/install-package@v1
51+ with :
52+ brew : gpatch
53+ apt : patch
54+ choco : patch
55+
5056 - name : Test
5157 run : |
52- pytest --doctest-modules --doctest-glob='*.rst' --junitxml=junit/test-results-${{ matrix.python-version }}.xml
58+ pytest --doctest-modules --doctest-glob='*.rst' --junitxml=junit/test-results-${{ matrix.python-version }}-${{ matrix.os }} .xml
5359
5460 - name : Upload pytest test results
55- uses : actions/upload-artifact@v3
61+ uses : actions/upload-artifact@v4
5662 with :
57- name : pytest-results-${{ matrix.python-version }}
58- path : junit/test-results-${{ matrix.python-version }}.xml
63+ name : pytest-results-${{ matrix.python-version }}-${{ matrix.os }}
64+ path : junit/test-results-${{ matrix.python-version }}-${{ matrix.os }} .xml
5965 # Use always() to always run this step to publish test results when there are test failures
6066 if : ${{ always() }}
0 commit comments