Skip to content

Commit 2dbb186

Browse files
committed
feat: 新增github actions配置文件
1 parent c50de35 commit 2dbb186

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [insistence]

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
lint-format:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v5
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.9"
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install ruff
24+
25+
- name: Run linting
26+
run: |
27+
ruff check ruoyi-fastapi-backend
28+
29+
- name: Run format check
30+
run: |
31+
ruff format ruoyi-fastapi-backend --check

0 commit comments

Comments
 (0)