@@ -11,27 +11,18 @@ jobs:
1111 runs-on : " ubuntu-latest"
1212 steps :
1313 - name : Checkout
14- uses : actions/checkout@v2
14+ uses : actions/checkout@v3
1515 with :
1616 fetch-depth : 0
1717 - name : Install Poetry
18- uses : snok/install-poetry@v1
19- with :
20- virtualenvs-create : true
21- virtualenvs-in-project : true
18+ run : pipx install poetry
2219 - name : Setup python
23- uses : actions/setup-python@v2
20+ uses : actions/setup-python@v4
2421 with :
2522 python-version : " 3.11"
26- - name : Load cache
27- uses : actions/cache@v2
28- id : cached-poetry-dependencies
29- with :
30- path : .venv
31- key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
23+ cache : " poetry"
3224 - name : Install dependencies
33- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
34- run : poetry install --no-interaction --no-root
25+ run : poetry install
3526 - name : Lint
3627 run : make lint
3728
@@ -44,44 +35,35 @@ jobs:
4435 runs-on : ${{ matrix.os }}
4536 steps :
4637 # ----------------------------------------------
47- # check-out repo and set-up python
38+ # check-out repo
4839 # ----------------------------------------------
4940 - name : Check out repository
50- uses : actions/checkout@v2
41+ uses : actions/checkout@v3
5142 with :
5243 fetch-depth : 0
53- - name : Set up python ${{ matrix.python-version }}
54- id : setup-python
55- uses : actions/setup-python@v2
56- with :
57- python-version : ${{ matrix.python-version }}
5844 # ----------------------------------------------
59- # install & configure poetry
45+ # install poetry
6046 # ----------------------------------------------
6147 - name : Install Poetry
62- uses : snok/install-poetry@v1
63- with :
64- virtualenvs-create : true
65- virtualenvs-in-project : true
48+ run : pipx install poetry
6649 # ----------------------------------------------
67- # load cached venv if cache exists
50+ # set-up python
6851 # ----------------------------------------------
69- - name : Load cached venv
70- id : cached-poetry-dependencies
71- uses : actions/cache@v2
52+ - name : Set up python ${{ matrix.python-version }}
53+ id : setup-python
54+ uses : actions/setup-python@v4
7255 with :
73- path : .venv
74- key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/ poetry.lock') }}
56+ python-version : ${{ matrix.python-version }}
57+ cache : " poetry"
7558 # ----------------------------------------------
7659 # install dependencies if cache does not exist
7760 # ----------------------------------------------
7861 - name : Install dependencies
7962 if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
80- run : poetry install --no-interaction --no-root
63+ run : poetry install
8164 # ----------------------------------------------
8265 # run test suite
8366 # ----------------------------------------------
8467 - name : Run tests
8568 run : |
86- source .venv/bin/activate
8769 poetry run pytest --cov=./jquants-api-client-python --cov-report=xml tests/
0 commit comments