1111 workpath :
1212 required : true
1313 type : string
14+ secrets :
15+ CODECOV_TOKEN :
16+ required : true
1417
1518jobs :
1619 test :
1720 runs-on : ${{ inputs.os }}
1821 strategy :
19- fail-fast : false
22+ fail-fast : true
2023 matrix :
21- python-version : ["3.8 ", "3.9 ", "3.10 "]
24+ python-version : ["3.9 ", "3.10 ", "3.11", "3.12 "]
2225 name : Python ${{ matrix.python-version }}
2326
2427 defaults :
2730
2831 steps :
2932 - name : Checkout
30- uses : actions/checkout@v2
33+ uses : actions/checkout@v4
3134
3235 - name : Change path on Windows
3336 if : ${{ inputs.os == 'windows-latest' }}
3841 mkdir -p ${{ inputs.workpath }}
3942 mv $env:GITHUB_WORKSPACE\* ${{ inputs.workpath }}\ -Force
4043
41- - uses : actions/setup-python@v2
44+ - uses : actions/setup-python@v5
4245 with :
4346 python-version : ${{ matrix.python-version }}
4447 architecture : x64
@@ -48,31 +51,22 @@ jobs:
4851 - name : Check system dependencies
4952 run : make doctor
5053
51- - uses : actions/cache@v2
54+ - uses : actions/cache@v4
5255 with :
5356 path : .venv
5457 key : ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
5558
5659 - name : Install project dependencies
5760 run : make install
5861
59- # Some tests fails intermittently, likely due to the public runners being
60- # very slow. Especially any client/server tests seems to be problematic.
61- # This is a simple attempt to re-run the tests up to three times if they
62- # fail. Does not add any execution time if successful.
63- - name : Run tests attempt 1
64- run : make test
65- - name : Run tests attempt 2
66- if : ${{ failure() }}
67- run : make test
68- - name : Run tests attempt 3
69- if : ${{ failure() }}
62+ - name : Run tests
7063 run : make test
7164
7265 - name : Upload coverage
73- uses : codecov/codecov-action@v1
66+ uses : codecov/codecov-action@v4
7467 if : ${{ inputs.os == 'ubuntu-latest' && matrix.python-version == '3.9' && github.repository == 'doorstop-dev/doorstop' }}
7568 with :
69+ token : ${{ secrets.CODECOV_TOKEN }}
7670 fail_ci_if_error : true
7771
7872 - name : Run checks
0 commit comments