Add quality gate workflow 10.
This commit is contained in:
committed by
vitor-aignosi
parent
0f7a341ff9
commit
0f753d00cb
18
.github/workflows/quality-gate.yml
vendored
18
.github/workflows/quality-gate.yml
vendored
@@ -30,11 +30,19 @@ jobs:
|
|||||||
owner: 'Aignosi'
|
owner: 'Aignosi'
|
||||||
repositories: 'sientia-dataops-library,sientia-mlops-library'
|
repositories: 'sientia-dataops-library,sientia-mlops-library'
|
||||||
|
|
||||||
- name: Create temporary requirements file
|
- name: Configure Git credentials
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
|
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
|
||||||
run: |
|
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
|
- name: 🔧 Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
@@ -45,14 +53,14 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements_https.txt') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
|
|
||||||
- name: 📦 Install Dependencies
|
- name: 📦 Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements_https.txt
|
pip install -r requirements.txt
|
||||||
pip install pytest pytest-cov
|
pip install pytest pytest-cov
|
||||||
|
|
||||||
- name: ⬇️ Setup Node.js 18
|
- name: ⬇️ Setup Node.js 18
|
||||||
|
|||||||
Reference in New Issue
Block a user