From: Jérôme Benoit Date: Mon, 24 Jun 2024 17:22:44 +0000 (+0200) Subject: build(ci): cache python poetry deps X-Git-Tag: v1.3.7~26 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=52238c635ec00feeb9b9300a0c99443a72e15925;p=e-mobility-charging-stations-simulator.git build(ci): cache python poetry deps Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index d98daf9a..89dd1eb9 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cc5a31d..870993ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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