doc: first version
Gitea Actions Test / Exp-Actions (push) Failing after 6s

feat: add test function
feat: add train/test dataset
feat: add test workflow
feat: add auto install requirements.txt
This commit is contained in:
2024-09-23 04:55:54 +08:00
commit 5fb2cdb2e7
6 changed files with 1125 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
name: Gitea Actions Test
run-name: 实验自动评测 Actions 🚀
on: [push]
jobs:
Exp-Actions:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 安装依赖
run: |
curl -o pip_cache.tar.gz http://10.2.1.195:880/download/pip_cache.tar.gz
tar -zxf pip_cache.tar.gz
python -m venv ./.venv
. ./.venv/bin/activate
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
- name: 评测结果
run: |
. ./.venv/bin/activate
python main.py