feat: add download file in workflow
Gitea Actions Test / Exp-Actions (push) Failing after 6s

chore: add .gitignore
This commit is contained in:
2024-09-23 05:29:10 +08:00
parent 5fb2cdb2e7
commit 7dbd6077b3
2 changed files with 8 additions and 1 deletions
+7 -1
View File
@@ -12,11 +12,17 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: 安装依赖 - name: 安装依赖
run: | run: |
curl -o pip_cache.tar.gz http://10.2.1.195:880/download/pip_cache.tar.gz curl -s -o pip_cache.tar.gz ${{ vars.EXP_URL }}/download/pip_cache.tar.gz
tar -zxf pip_cache.tar.gz tar -zxf pip_cache.tar.gz
python -m venv ./.venv python -m venv ./.venv
. ./.venv/bin/activate . ./.venv/bin/activate
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
- name: 下载文件
run: |
rm datingTrainSet2.tsv datingTestSet2.tsv main.py
curl -s -o main.py ${{ vars.EXP_URL }}/exp/knn/main.py
curl -s -o datingTrainSet2.tsv ${{ vars.EXP_URL }}/exp/knn/datingTrainSet2.tsv
curl -s -o datingTestSet2.tsv ${{ vars.EXP_URL }}/exp/knn/datingTestSet2.tsv
- name: 评测结果 - name: 评测结果
run: | run: |
. ./.venv/bin/activate . ./.venv/bin/activate
+1
View File
@@ -0,0 +1 @@
__pycache__