🔧 ci: setup github workflows

This commit is contained in:
SigureMo 2021-05-06 21:42:26 +08:00
parent 9a41393880
commit 7ccea353bb
No known key found for this signature in database
GPG Key ID: F99A3CD7BD76B247
6 changed files with 145 additions and 0 deletions

7
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1,7 @@
patreon: SigureMo
custom:
[
"https://afdian.net/@siguremo",
"https://img.nyakku.moe/sponsor/alipay.png",
"https://img.nyakku.moe/sponsor/wechat.png",
]

54
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@ -0,0 +1,54 @@
---
name: Bug report
about: Create a report to help us improve
title: "🐛 "
labels: "bug: pending triage"
assignees: ""
---
<!-- 为了提高问题的解决效率,我们衷心希望你能够按照模板来书写 Issue -->
<!-- 这有利于我们更快地找到问题所在,节省了不必要的额外问询时间 -->
<!-- 请确定你是发现了一个 bug否则请移步 discussion -->
## 调用方式
<!-- 请在这里粘贴你所使用的命令 -->
<!-- 如果与特定 url 有关,请直接在命令中提供该 url -->
<!-- 记得在粘贴的命令中去掉所有的隐私信息哦 -->
<!-- 请尽可能使用 Markdown 语法来进行书写 -->
<!-- 代码段一定要使用 ``` 包裹 -->
## 环境信息
- OS 操作系统类型及其版本号
- Python Python 版本号
- yutto yutto 版本号
- FFmpeg: ffmpeg 版本号
- 如果是显示相关问题
- ShellShell 类型
- Terminal终端类型
- Others 其它信息
## 问题简述
<!-- 请在这里填写发生的问题 -->
<!-- 如果发生报错请粘贴报错信息 -->
## 预期行为
<!-- 请在这里填写预期的行为 -->
## 额外信息
<!-- 请在这里填写额外的问题 -->
## 是否愿意为此贡献代码
<!-- 如果你愿意,欢迎贡献~ -->

View File

@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: "✨ "
labels: ""
assignees: ""
---
<!-- 此处应只提出当前程序中亟待解决的问题,或者经过讨论决定添加的可选特性 -->
<!-- 如果你有新的想法,请先移步 discussion在经过详细讨论后再决定是否添加 -->
## 特性描述
<!-- 请在这里详述你所需要的特性 -->
## 是否愿意为此贡献代码
<!-- 如果你愿意,欢迎贡献~ -->

24
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,24 @@
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
<!-- 感谢你的贡献 -->
<!-- 为了让我们更快地了解你所作的更改, **请不要删除本模板** -->
<!-- 在开始一个 PR 之前,请确定你已经阅读过 CONTRIBUTING.md -->
<!-- 为了节省你的时间,如果你需要一个新特性,在你开始为其工作之前,最佳选择是开启一个 featrue request 的 issue 让大家一起讨论 -->
## 概述
<!-- 请在这里描述你的修改 -->
本 PR 的类型(至少选择一个)
- [ ] :sparkles: feat: 添加新功能
- [ ] :bug: fix: 修复 bug
- [ ] :pencil: docs: 对文档进行修改
- [ ] :art: style: 对代码语义无影响的格式修改(如去除无用空格、格式化等等修改)
- [ ] :recycle: refactor: 代码重构(既不是新增功能,也不是修改 bug 的代码变动)
- [ ] :zap: perf: 提高性能的代码修改
- [ ] :white_check_mark: test: 测试用例添加及修改
- [ ] :hammer: build: 影响构建系统或外部依赖关系的更改
- [ ] :construction_worker: ci: 更改 CI 配置文件和脚本
- [ ] :question: chore: 其它不涉及源码以及测试的修改

13
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "⬆️ build: "

View File

@ -0,0 +1,28 @@
name: Release Latest Test
schedule:
- cron: "0 0 * * *"
jobs:
test-yutto-latest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
architecture: ["x64", "arm64"]
name: Python ${{ matrix.python-version }} on ${{ matrix.architecture }} sample
steps:
- name: Install python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install yutto latest
run: |
pip install yutto
# TODO: pytest 集成测试
- name: Test yutto
run: |
yutto -v