From 15861d68e6d1e7f312ce3766a3e9a059f68cd1a5 Mon Sep 17 00:00:00 2001 From: David Kirov Date: Fri, 20 Dec 2024 22:26:35 +0100 Subject: [PATCH] Replace ddev with pytest in experimental workflow --- .github/workflows/experimental.yml | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/.github/workflows/experimental.yml b/.github/workflows/experimental.yml index 84d89ece075bd..3078161119888 100644 --- a/.github/workflows/experimental.yml +++ b/.github/workflows/experimental.yml @@ -177,34 +177,10 @@ jobs: echo "PATH=$(pwd)/python_dir:$PATH" >> $GITHUB_ENV fi - - name: Install pip + - name: Install pip and pytest run: | python -m ensurepip - - - name: Restore cache - uses: actions/cache/restore@v4 - with: - path: ${{ runner.os == 'Windows' && '~\AppData\Local\pip\Cache' || '~/.cache/pip' }} - key: >- - ${{ format( - 'v01-python-{0}-{1}-{2}-{3}', - env.pythonLocation, - hashFiles('datadog_checks_base/pyproject.toml'), - hashFiles('datadog_checks_dev/pyproject.toml'), - hashFiles('ddev/pyproject.toml') - )}} - restore-keys: |- - v01-python-${{ env.pythonLocation }} - - - name: Install ddev from local folder - run: | - python.exe -m pip install -e ./datadog_checks_dev[cli] - python.exe -m pip install -e ./ddev - - - name: Configure ddev - run: | - ddev config set repos.core . - ddev config set repo core + pip install pytest - name: Test if: runner.os == 'Windows'