build(ci): cache python poetry deps
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 24 Jun 2024 17:22:44 +0000 (19:22 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 24 Jun 2024 17:22:44 +0000 (19:22 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/autofix.yml
.github/workflows/ci.yml

index d98daf9add8c12db18ebb8da70359e06000a51ba..89dd1eb9427570914cd6bfef7a0223796128ad3b 100644 (file)
@@ -14,10 +14,11 @@ jobs:
         working-directory: tests/ocpp-server
     steps:
       - uses: actions/checkout@v4
+      - run: pipx install poetry
       - uses: actions/setup-python@v5
         with:
           python-version: 3.12
-      - run: pip install poetry
+          cache: poetry
       - run: poetry install --no-root
       - run: poetry run task format
 
index 3cc5a31dc7bbc76a5409c89e024adebf56ff6a55..870993efc4668fd373a793a52ef4a12c8166a1bc 100644 (file)
@@ -33,12 +33,13 @@ jobs:
         working-directory: tests/ocpp-server
     steps:
       - uses: actions/checkout@v4
+      - name: Install Poetry
+        run: pipx install poetry
       - name: Setup Python ${{ matrix.python }}
         uses: actions/setup-python@v5
         with:
           python-version: ${{ matrix.python }}
-      - name: Install Poetry
-        run: pip install poetry
+          cache: poetry
       - name: Install Dependencies
         run: poetry install --no-root
       - name: Lint