File tree 2 files changed +39
-14
lines changed
2 files changed +39
-14
lines changed Original file line number Diff line number Diff line change 1
- steps :
2
- - uses : actions/checkout@v4
3
- - name : Setup PDM
4
- uses : pdm-project/setup-pdm@v4
5
- # You are now able to use PDM in your workflow
6
- - name : Install dependencies
7
- run : pdm install
8
- - name : publish docs
9
- run : pdm docs-deploy
1
+ name : build
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ python-version : ["3.10", "3.11"]
11
+
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - name : Set up Python ${{ matrix.python-version }}
15
+ uses : actions/setup-python@v5
16
+ with :
17
+ python-version : ${{ matrix.python-version }}
18
+
19
+ - name : Install pdm
20
+ run : pipx install pdm
21
+
22
+ - name : Set up cache
23
+ uses : actions/cache@v4.0.2
24
+ with :
25
+ path : .venv
26
+ key : venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
27
+ - name : Install dependencies
28
+ run : |
29
+ pdm install
30
+
31
+ - name : Run test and code styles
32
+ run : |
33
+ pdm test
34
+ pdm cleanup
35
+
36
+ - name : deploy docs
37
+ run : pdm docs-deploy
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ dependencies = [
42
42
]
43
43
44
44
[tool.pdm.scripts]
45
- # ss-python-cli = "ss_python.cli:app"
46
45
lint = "ruff ."
47
46
fmt = "ruff format . --check"
48
47
test = "pytest "
@@ -51,8 +50,8 @@ docs-deploy ="mkdocs gh-deploy --force"
51
50
cleanup = "sh scripts/cleanup.sh"
52
51
53
52
[project.urls]
54
- issue = "https://github.com/{{organization_name}}/{{repo_name }}/issues"
55
- repository = "https://github.com/{{organization_name}}/{{repo_name }}"
53
+ issue = "https://github.com/{{organization_name}}/{{project_name }}/issues"
54
+ repository = "https://github.com/{{organization_name}}/{{project_name }}"
56
55
57
56
[tool.pdm]
58
57
distribution = true
@@ -148,5 +147,3 @@ url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
148
147
[[tool.pdm.source]]
149
148
name = "douban"
150
149
url = "https://pypi.doubanio.com/simple/"
151
-
152
-
You can’t perform that action at this time.
0 commit comments