@@ -6,30 +6,43 @@ defaults:
66 run :
77 shell : bash
88
9+ concurrency :
10+ group : ci-tests-${{ github.ref }}-1
11+ cancel-in-progress : true
12+
913jobs :
1014 test :
1115 strategy :
1216 fail-fast : false
1317 matrix :
14- os : [ubuntu-20.04, macos-12, macos-11, windows-2022 , windows-2019]
18+ os : [ubuntu-20.04, macos-11 , windows-2019]
1519 python-version : [ "3.6", "3.7", "3.8", "3.9", "3.10", "pypy3.7", "pypy3.8", "pypy3.9", ]
1620 runs-on : ${{ matrix.os }}
1721 steps :
1822 - name : Check out repository
19- uses : actions/checkout@v2
23+ uses : actions/checkout@v3
2024 - name : Set up python
2125 id : setup-python
2226 uses : actions/setup-python@v4
2327 with :
2428 python-version : ${{ matrix.python-version }}
2529 - name : Print Python Information
2630 run : python -VV
27- - name : Updating dependencies
28- run : python -m pip install -U pip poetry
2931 - name : install TinyTeX
3032 uses : r-lib/actions/setup-tinytex@v2
31- - name : Install PyPandoc environment
33+ - name : Install and configure Poetry
34+ run : |
35+ pip3 install poetry
36+ poetry config virtualenvs.in-project true
37+ - name : Set up cache
38+ uses : actions/cache@v3
39+ id : cached-poetry-dependencies
40+ with :
41+ path : .venv
42+ key : venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
43+ - name : Install dependencies
3244 run : poetry install
45+ if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
3346 - name : Download pandoc
3447 run : poetry run python setup_binary.py download_pandoc
3548 - name : run tests
4053 if : github.ref == 'refs/heads/master'
4154 strategy :
4255 matrix :
43- os : [macos-10.15 , windows-2019]
56+ os : [macos-11 , windows-2019]
4457 runs-on : ${{ matrix.os }}
4558 steps :
4659 - name : Check out repository
5366 echo "PYTHON_ARCHITECTURE=x64" >> $GITHUB_ENV
5467 fi
5568 - name : Set up python
56- uses : actions/setup-python@v3
69+ uses : actions/setup-python@v4
5770 with :
5871 python-version : " 3.9.x"
5972 architecture : " ${{ env.PYTHON_ARCHITECTURE }}"
0 commit comments