File tree 1 file changed +23
-19
lines changed
1 file changed +23
-19
lines changed Original file line number Diff line number Diff line change @@ -14,44 +14,44 @@ jobs:
14
14
run : |
15
15
sudo apt update
16
16
sudo apt install -y git
17
+
18
+ - name : Set up Python
19
+ uses : actions/setup-python@v5
20
+ with :
21
+ python-version : ' 3.10'
22
+
17
23
- name : Install uv
18
24
uses : astral-sh/setup-uv@v3
25
+
19
26
- name : Install Node Env
20
27
uses : actions/setup-node@v4
21
28
with :
22
29
node-version : 20
30
+
23
31
- name : Checkout
24
32
25
33
with :
26
34
fetch-depth : 0
27
35
persist-credentials : false
28
- - name : Create Virtual Environment
36
+
37
+ - name : Build and validate package
29
38
run : |
30
39
uv venv
31
- - name : Activate Virtual Environment and Install Dependencies
32
- run : |
33
- source .venv/bin/activate # For Linux/macOS. Use .venv\Scripts\activate for Windows
34
- uv sync --frozen
40
+ . .venv/bin/activate
35
41
uv pip install --upgrade setuptools wheel hatchling twine
36
- - name : Build app
37
- run : |
38
- source .venv/bin/activate # Activate the virtual environment again if needed
42
+ uv sync --frozen
43
+ uv pip install -e .
39
44
uv build
40
- id : build_cache
41
- if : success()
42
- - name : Validate Metadata
43
- run : |
44
- source .venv/bin/activate
45
45
uv run twine check dist/*
46
+
46
47
- name : Debug Dist Directory
47
- run : |
48
- ls -al dist
48
+ run : ls -al dist
49
+
49
50
- name : Cache build
50
51
uses : actions/cache@v3
51
52
with :
52
53
path : ./dist
53
54
key : ${{ runner.os }}-build-${{ github.sha }}
54
- if : steps.build_cache.outputs.id != ''
55
55
56
56
release :
57
57
name : Release
73
73
with :
74
74
fetch-depth : 0
75
75
persist-credentials : false
76
- - name : Restore Virtual Environment
77
- run : |
78
- source .venv/bin/activate
76
+
77
+ - name : Restore build artifacts
78
+ uses : actions/cache@v3
79
+ with :
80
+ path : ./dist
81
+ key : ${{ runner.os }}-build-${{ github.sha }}
82
+
79
83
- name : Semantic Release
80
84
81
85
with :
You can’t perform that action at this time.
0 commit comments