diff --git a/.github/workflows/quality-gate.yml b/.github/workflows/quality-gate.yml index 7b01020..1086656 100644 --- a/.github/workflows/quality-gate.yml +++ b/.github/workflows/quality-gate.yml @@ -30,11 +30,19 @@ jobs: owner: 'Aignosi' repositories: 'sientia-dataops-library,sientia-mlops-library' - - name: Create temporary requirements file + - name: Configure Git credentials env: - GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} + GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} run: | - sed "s|git+ssh://git@github.com|git+https://${GITHUB_TOKEN}:x-oauth-basic@github.com|g" requirements.txt > requirements_https.txt + git config --global credential.helper store + echo "https://${GITHUB_TOKEN}:x-oauth-basic@github.com" > ~/.git-credentials + chmod 600 ~/.git-credentials + +# - name: Create temporary requirements file +# env: +# GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} +# run: | +# sed "s|git+ssh://git@github.com|git+https://${GITHUB_TOKEN}:x-oauth-basic@github.com|g" requirements.txt > requirements_https.txt - name: 🔧 Setup Python uses: actions/setup-python@v4 @@ -45,14 +53,14 @@ jobs: uses: actions/cache@v3 with: path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements_https.txt') }} + key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- - name: 📦 Install Dependencies run: | python -m pip install --upgrade pip - pip install -r requirements_https.txt + pip install -r requirements.txt pip install pytest pytest-cov - name: ⬇️ Setup Node.js 18