diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06a4253..b8c62ba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,8 +19,10 @@ jobs: poetry-version: ["1.8.3"] steps: - - name: Check out repository + - name: Checkout Code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Conda uses: conda-incubator/setup-miniconda@v2 @@ -41,12 +43,8 @@ jobs: id: cache-deps uses: actions/cache@v2 with: - path: | - ~/.cache/pypoetry - ~/.conda/envs/myenv - key: ${{ runner.os }}-poetry-${{ matrix.poetry-version }}-${{ hashFiles('**/poetry.lock') }} - restore-keys: | - ${{ runner.os }}-poetry-${{ matrix.poetry-version }}- + path: .venv + key: pydeps-${{ hashFiles('**/poetry.lock') }} - name: Activate Conda environment shell: bash -l {0} @@ -57,7 +55,7 @@ jobs: - name: Set Python version for Poetry run: poetry env use $(which python) - - name: Install dependencies + - name: Install the dependencies run: poetry install --no-interaction --no-root --with dev if: steps.cache-deps.outputs.cache-hit != 'true'