@@ -21,14 +21,13 @@ jobs:
2121 working-directory : ${{ matrix.lib }}
2222 steps :
2323 - uses : actions/checkout@v4
24+ - name : Install poetry
25+ run : pipx install poetry
2426 - name : Set up Python
2527 uses : actions/setup-python@v5
2628 with :
2729 python-version : ${{ matrix.python-version }}
28- - name : Install poetry
29- run : |
30- pip install poetry
31- poetry --version
30+ cache : " poetry"
3231 - name : Install dependencies and library
3332 run : poetry install
3433 - name : Check format
@@ -47,14 +46,13 @@ jobs:
4746 working-directory : ${{ matrix.lib }}
4847 steps :
4948 - uses : actions/checkout@v4
49+ - name : Install poetry
50+ run : pipx install poetry
5051 - name : Set up Python
5152 uses : actions/setup-python@v5
5253 with :
5354 python-version : ${{ matrix.python-version }}
54- - name : Install poetry
55- run : |
56- pip install poetry
57- poetry --version
55+ cache : " poetry"
5856 - name : Install dependencies and library
5957 run : poetry install
6058 - name : Check typing with mypy
@@ -77,14 +75,13 @@ jobs:
7775 working-directory : ${{ matrix.lib }}
7876 steps :
7977 - uses : actions/checkout@v4
78+ - name : Install poetry
79+ run : pipx install poetry
8080 - name : Set up Python
8181 uses : actions/setup-python@v5
8282 with :
8383 python-version : ${{ matrix.python-version }}
84- - name : Install poetry
85- run : |
86- pip install poetry
87- poetry --version
84+ cache : " poetry"
8885 - name : Install dependencies and library
8986 run : poetry install
9087 # We ignore the following rules for now:
@@ -106,14 +103,13 @@ jobs:
106103 working-directory : ${{ matrix.lib }}
107104 steps :
108105 - uses : actions/checkout@v4
106+ - name : Install poetry
107+ run : pipx install poetry
109108 - name : Set up Python
110109 uses : actions/setup-python@v5
111110 with :
112111 python-version : ${{ matrix.python-version }}
113- - name : Install poetry
114- run : |
115- pip install poetry
116- poetry --version
112+ cache : " poetry"
117113 - name : Install dependencies and library
118114 run : poetry install
119115 - name : Run tests
0 commit comments