File tree 2 files changed +39
-10
lines changed 2 files changed +39
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on :
3
- workflow_dispatch :
4
- push :
5
- branches : ['main']
6
- pull_request :
3
+ workflow_dispatch :
4
+ push :
5
+ branches : ['main']
6
+ pull_request :
7
7
jobs :
8
8
tests :
9
9
runs-on : ${{ matrix.os }}
10
10
env :
11
11
PYTHONIOENCODING : utf-8
12
12
steps :
13
13
- name : Checkout code
14
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
14
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15
15
16
16
- name : Setup git user config
17
17
run : |
18
18
git config --global user.name placeholder
19
19
git config --global user.email placeholder@example.com
20
20
21
- - name : " Set up uv"
22
- uses : astral-sh/setup-uv@f3bcaebff5eace81a1c062af9f9011aae482ca9d # v3.1.7
21
+ - name : Set up uv
22
+ uses : astral-sh/setup-uv@3b9817b1bf26186f03ab8277bab9b827ea5cc254 # v3.2.0
23
23
with :
24
24
version : " latest"
25
25
26
26
- name : " Set up Python"
27
- uses : actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
27
+ uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
28
28
with :
29
29
python-version : ${{ matrix.python-version }}
30
30
39
39
40
40
- name : Run pytest
41
41
uses : pavelzw/pytest-action@510c5e90c360a185039bea56ce8b3e7e51a16507 # v2.2.0
42
- with :
43
- custom-arguments : tests
42
+
44
43
strategy :
45
44
matrix :
46
45
os : [ubuntu-latest, macos-latest, windows-latest]
Original file line number Diff line number Diff line change
1
+
2
+ name : Release to PyPI
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+ jobs :
8
+ deploy :
9
+ runs-on : ubuntu-latest
10
+ environment : release
11
+ permissions :
12
+ id-token : write
13
+ steps :
14
+ - name : Checkout code
15
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16
+
17
+ - name : Set up uv
18
+ uses : astral-sh/setup-uv@3b9817b1bf26186f03ab8277bab9b827ea5cc254 # v3.2.0
19
+ with :
20
+ version : " latest"
21
+
22
+ - name : " Set up Python"
23
+ uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
24
+ with :
25
+ python-version : 3.12
26
+
27
+ - name : Release
28
+ run : |
29
+ uv build
30
+ uv publish --trusted-publishing always
You can’t perform that action at this time.
0 commit comments