初始化 Python 项目,添加 Gitea Actions 工作流和基本测试

This commit is contained in:
2026-06-08 22:27:17 +08:00
commit f808f51870
7 changed files with 85 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Python Action Test
run-name: ${{ gitea.actor }}
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.14
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
- name: Run unit tests
run: pytest