From 4fc92504f49139d2bf652730d552969ac7c33461 Mon Sep 17 00:00:00 2001 From: Ajeet yadav Date: Mon, 11 Mar 2024 00:23:59 +0530 Subject: [PATCH] Added caching --- .github/workflows/test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bbf9ac1..a176ff2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,9 @@ jobs: strategy: matrix: python-version: ["3.9", "3.10", "3.11"] + defaults: + run: + working-directory: 01OS steps: - name: Checkout uses: actions/checkout@v4 @@ -23,14 +26,13 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: "poetry" - name: Install Poetry Package - working-directory: 01OS run: | sudo apt-get install portaudio19-dev python-all-dev pip install --upgrade pip pip install poetry==1.3.2 poetry config virtualenvs.create false poetry install --no-interaction --with dev - - name: Run Pre-commit - working-directory: 01OS - run: pytest test + - name: Run Pytest + run: pytest tests