SIENTIAPDE-1255: Update quality gate workflow: Remove redundant repository and disk space cleanup, update cache key.
This commit is contained in:
16
.github/workflows/quality-gate.yml
vendored
16
.github/workflows/quality-gate.yml
vendored
@@ -164,7 +164,7 @@ jobs:
|
|||||||
app-id: ${{ secrets.APP_ID }}
|
app-id: ${{ secrets.APP_ID }}
|
||||||
private-key: ${{ secrets.APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
owner: 'Aignosi'
|
owner: 'Aignosi'
|
||||||
repositories: 'sientia-dataops-library,sientia-mlops-library'
|
repositories: 'sientia-dataops-library'
|
||||||
|
|
||||||
- name: Prepare requirements.txt
|
- name: Prepare requirements.txt
|
||||||
id: prepare-requirements
|
id: prepare-requirements
|
||||||
@@ -180,18 +180,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global url."https://oauth2:${GH_APP_TOKEN}@github.com/".insteadOf "https://github.com/"
|
git config --global url."https://oauth2:${GH_APP_TOKEN}@github.com/".insteadOf "https://github.com/"
|
||||||
|
|
||||||
- name: 🧹 Free Disk Space
|
|
||||||
run: |
|
|
||||||
echo "Disk space before cleanup:"
|
|
||||||
df -h
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
sudo rm -rf /opt/hostedtoolcache/CodeQL
|
|
||||||
sudo docker image prune --all --force
|
|
||||||
echo "Disk space after cleanup:"
|
|
||||||
df -h
|
|
||||||
|
|
||||||
- name: 🔧 Setup Python
|
- name: 🔧 Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
@@ -201,7 +189,7 @@ jobs:
|
|||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt', 'requirements-dev.txt') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('requirements_prepared.txt', 'requirements-dev.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user