Commit 6b74b8f
committed
fix(ci): Resolve installation hangs and update deployment logic
This commit addresses several issues across the `notebook-test` and `docs` CI/CD workflows to improve reliability, efficiency, and compatibility with different environments (Gitea, GitHub Actions, local `act`).
Key changes:
1. **Resolves `apt-get` Hangs and `pip` Errors:**
* Adds `DEBIAN_FRONTEND=noninteractive` to all `apt-get install` commands. This prevents the workflows from hanging on interactive prompts from packages like `tzdata`.
* Uses `pip install --ignore-installed` when upgrading `pip`, `setuptools`, and `wheel`. This fixes the `uninstall-no-record-file` error by preventing `pip` from attempting to uninstall packages managed by the system's package manager.
* Consolidates multiple `apt-get` steps in `notebook-test.yml` into a single, more efficient step.
2. **Updates Gitea Documentation Deployment:**
* The deployment path for Gitea is updated to `/pages/docs/${{ github.event.repository.name }}` to align with the new server configuration, which serves docs from a subfolder.
* Adds a step to extract the `artifact.tar` created by `actions/upload-pages-artifact` before deploying the contents.
3. **Improves Local `act` Runner Compatibility:**
* The `docs` workflow now skips the `upload-pages-artifact` and `deploy-pages` steps when running locally via `act` (`if: ${{ !env.ACT }}`). This prevents failures caused by the absence of GitHub-specific environment variables like `ACTIONS_RUNTIME_TOKEN`.1 parent 2190402 commit 6b74b8f
2 files changed
Lines changed: 37 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
96 | 97 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
106 | 107 | | |
107 | | - | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | | - | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
141 | 147 | | |
142 | | - | |
143 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | | - | |
64 | | - | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 68 | | |
83 | 69 | | |
84 | 70 | | |
85 | | - | |
| 71 | + | |
86 | 72 | | |
87 | 73 | | |
88 | 74 | | |
| |||
93 | 79 | | |
94 | 80 | | |
95 | 81 | | |
96 | | - | |
| 82 | + | |
97 | 83 | | |
98 | 84 | | |
99 | 85 | | |
| |||
107 | 93 | | |
108 | 94 | | |
109 | 95 | | |
110 | | - | |
| 96 | + | |
111 | 97 | | |
112 | 98 | | |
113 | 99 | | |
| |||
0 commit comments