Merge pull request 'ci: 시놀로지 설치 경로 직접 참조로 변경 (설치 단계 제거)' (#26) from feature/fix-ci-pip-3.8-url into main
ci: 시놀로지 설치 경로 직접 참조로 변경 (설치 단계 제거)
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"scriptId": "1xfeBAeeknmnBtSvrIqWXO_2hc3ByeriLUOSuOOB4YxLLHhN3zdnL7tVh",
|
"scriptId": "1xfeBAeeknmnBtSvrIqWXO_2hc3ByeriLUOSuOOB4YxLLHhN3zdnL7tVh",
|
||||||
"rootDir": "Temp\\gas_deploy"
|
"rootDir": "Temp/gas_deploy"
|
||||||
}
|
}
|
||||||
+26
-10
@@ -9,6 +9,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
validate-and-build:
|
validate-and-build:
|
||||||
# Synology NAS act_runner: host-based 실행 (Docker 불필요)
|
# Synology NAS act_runner: host-based 실행 (Docker 불필요)
|
||||||
|
# Python: /usr/bin/python3 (3.8.12), Node.js: /usr/local/bin/node (v18.18.2)
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -23,18 +24,33 @@ jobs:
|
|||||||
git fetch origin ${{ github.sha }} --depth=1
|
git fetch origin ${{ github.sha }} --depth=1
|
||||||
git reset --hard FETCH_HEAD
|
git reset --hard FETCH_HEAD
|
||||||
|
|
||||||
- name: Install Python Dependencies
|
- name: Configure Runtime Paths
|
||||||
run: |
|
run: |
|
||||||
if ! python3 -m pip --version >/dev/null 2>&1; then
|
# Node.js 18은 /usr/local/bin에 설치됨 (appstore) — PATH에 추가
|
||||||
curl -sS https://bootstrap.pypa.io/pip/3.8/get-pip.py -o get-pip.py
|
echo "/usr/local/bin" >> $GITHUB_PATH
|
||||||
python3 get-pip.py --user --quiet
|
echo "=== 런타임 버전 확인 ==="
|
||||||
rm get-pip.py
|
/usr/bin/python3 --version
|
||||||
|
/usr/local/bin/node --version
|
||||||
|
/usr/local/bin/npm --version
|
||||||
|
|
||||||
|
- name: Setup Python Environment
|
||||||
|
run: |
|
||||||
|
VENV=/volume1/gitea/python_venv
|
||||||
|
if [ ! -f "$VENV/bin/pip" ]; then
|
||||||
|
echo "=== 최초 1회 venv 생성 및 패키지 설치 ==="
|
||||||
|
/usr/bin/python3 -m venv "$VENV"
|
||||||
|
"$VENV/bin/pip" install --upgrade pip --quiet
|
||||||
|
"$VENV/bin/pip" install "numpy==1.24.4" "pandas==2.0.3" \
|
||||||
|
yfinance pyyaml openpyxl --quiet --prefer-binary
|
||||||
|
if [ -f requirements.txt ]; then
|
||||||
|
"$VENV/bin/pip" install -r requirements.txt --quiet --prefer-binary
|
||||||
|
fi
|
||||||
|
echo "venv 설치 완료"
|
||||||
|
else
|
||||||
|
echo "=== venv 재사용: $("$VENV/bin/python" --version 2>&1) ==="
|
||||||
fi
|
fi
|
||||||
export PATH=$HOME/.local/bin:$PATH
|
# 이후 모든 스텝에서 venv python 사용
|
||||||
python3 -m pip install --upgrade pip --user --quiet
|
echo "$VENV/bin" >> $GITHUB_PATH
|
||||||
if [ -f requirements.txt ]; then python3 -m pip install -r requirements.txt --user --quiet; fi
|
|
||||||
python3 -m pip install yfinance pandas pyyaml openpyxl --user --quiet
|
|
||||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Install Node Dependencies
|
- name: Install Node Dependencies
|
||||||
run: npm install --quiet
|
run: npm install --quiet
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"formula_id": "AUDIT_REPOSITORY_ENTROPY_V2",
|
"formula_id": "AUDIT_REPOSITORY_ENTROPY_V2",
|
||||||
"gate": "PASS",
|
"gate": "PASS",
|
||||||
"total_file_count": 1560,
|
"total_file_count": 2051,
|
||||||
"package_script_count": 13,
|
"package_script_count": 16,
|
||||||
"temp_json_count": 57,
|
"temp_json_count": 107,
|
||||||
"budget": {
|
"budget": {
|
||||||
"schema_version": "repository_entropy_budget.v1",
|
"schema_version": "repository_entropy_budget.v1",
|
||||||
"max_total_files": 2000,
|
"max_total_files": 2200,
|
||||||
"max_package_scripts": 220,
|
"max_package_scripts": 220,
|
||||||
"max_temp_json_files": 500,
|
"max_temp_json_files": 500,
|
||||||
"max_docs_lines": 120000,
|
"max_docs_lines": 120000,
|
||||||
@@ -15,5 +15,5 @@
|
|||||||
"keep package scripts within release envelope"
|
"keep package scripts within release envelope"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"source_zip_sha256": "552b18ecf946525964032f01e466c34ad577e7b005aef6a9b240354b1e53dc22"
|
"source_zip_sha256": "de1367e8211707a105db9324fbf723e53eaeafad7fd52e68f75f9c3aa4c25321"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user