Template
feat: add test function feat: add train/test dataset feat: add test workflow feat: add auto install requirements.txt
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user