Template
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
24 lines
651 B
YAML
24 lines
651 B
YAML
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
|