@@ -10,14 +10,14 @@ jobs:
1010 strategy :
1111 matrix :
1212 platform : [ubuntu-latest, macos-latest, windows-latest]
13- python-version : ['3.7 ', '3.8 ', '3.10 ', '3.11 ']
13+ python-version : ['3.8 ', '3.10 ', '3.11 ', '3.12 ']
1414 defaults :
1515 run :
1616 shell : bash
1717 steps :
18- - uses : actions/checkout@v2
18+ - uses : actions/checkout@v4
1919 - name : Set up Python ${{ matrix.python-version }}
20- uses : actions/setup-python@v4
20+ uses : actions/setup-python@v5
2121 with :
2222 python-version : ${{ matrix.python-version }}
2323 - name : Upgrade pip
@@ -43,19 +43,19 @@ jobs:
4343 run : poetry run flake8 ./staircase
4444 - name : Test with pytest
4545 run : |
46- poetry run pytest ./tests --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov=staircase --cov-report=xml
46+ poetry run pytest ./tests --junitxml=junit/test-results-${{ matrix.platform }}-${{ matrix. python-version }}.xml --cov=staircase --cov-report=xml
4747 codecov
4848 - name : Upload pytest test results
49- uses : actions/upload-artifact@v2
49+ uses : actions/upload-artifact@v4
5050 with :
51- name : pytest-results-${{ matrix.python-version }}
52- path : junit/test-results-${{ matrix.python-version }}.xml
51+ name : pytest-results-${{ matrix.platform }}-${{ matrix. python-version }}
52+ path : junit/test-results-${{ matrix.platform }}-${{ matrix. python-version }}.xml
5353 # Use always() to always run this step to publish test results when there are test failures
5454 if : ${{ always() }}
5555 - name : Upload coverage to Codecov
56- uses : codecov/codecov-action@v3
56+ uses : codecov/codecov-action@v4
5757 with :
5858 token : ${{ secrets.CODECOV_TOKEN }}
59- fail_ci_if_error : true
59+ fail_ci_if_error : false
6060
6161
0 commit comments