@@ -164,106 +164,6 @@ jobs:
164164 run : |
165165 om ci run
166166
167- test-omnix-template :
168- needs : [set-variables]
169- if : ${{ needs.set-variables.outputs.skip_ci != 'true' }}
170- runs-on : ubuntu-latest
171- concurrency :
172- group : test-omnix-template-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref_name }}
173- cancel-in-progress : true
174- steps :
175- - name : Install dependencies
176- shell : bash
177- run : |
178- sudo apt-get update
179- sudo apt-get install -yq zstd
180- sudo apt-get clean
181-
182- - name : Install Nix
183- uses : DeterminateSystems/nix-installer-action@a48face58194521af687ce7df4c802b1b558e743 # ratchet:DeterminateSystems/nix-installer-action@main
184- with :
185- extra-conf : " system-features = nixos-test benchmark big-parallel kvm"
186-
187- - name : Setup remote cache
188- uses : cachix/cachix-action@be5295a636153b6ad194d3245f78f8e0b78dc704 # ratchet:cachix/cachix-action@master
189- continue-on-error : true
190- with :
191- name : " ${{ vars.CACHIX_CACHE_NAME }}"
192- authToken : " ${{ secrets.CACHIX_AUTH_TOKEN }}"
193- extraPullNames : nix-community,pyproject-nix,sciexp,srid
194-
195- - name : Setup tmate debug session
196- uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48 # ratchet:mxschmitt/action-tmate@v3
197- if : ${{ needs.set-variables.outputs.debug == 'true' }}
198-
199- - name : Install omnix
200- # If we don't install omnix here, it will just clutter the log of the next step
201- run : nix --accept-flake-config profile install "github:juspay/omnix"
202-
203- # These tests execute the tl;dr one-liners from the README
204- - name : Test monorepo template initialization
205- run : |
206- REPO_REF="github:sciexp/python-nix-template/${{ needs.set-variables.outputs.checkout_rev }}"
207- echo "Using repository reference: $REPO_REF"
208-
209- pwd
210- rm -fr pnt-mono
211-
212- nix --accept-flake-config run github:juspay/omnix -- init "$REPO_REF" -o pnt-mono --non-interactive --params '{
213- "package-name-kebab-case": "pnt-mono",
214- "package-name-snake-case": "pnt_mono",
215- "monorepo-package": true,
216- "git-org": "pnt-mono",
217- "author": "Pnt Mono",
218- "author-email": "mono@pnt.org",
219- "vscode": true,
220- "github-ci": true,
221- "nix-template": true
222- }'
223-
224- cd pnt-mono
225- git init
226- git config --local user.email "test@example.com"
227- git config --local user.name "Test User"
228- git commit --allow-empty -m "initial commit (empty)"
229- git add .
230-
231- nix develop --accept-flake-config -c pytest
232-
233- - name : Test single-package template initialization
234- run : |
235- REPO_REF="github:sciexp/python-nix-template/${{ needs.set-variables.outputs.checkout_rev }}"
236- echo "Using repository reference: $REPO_REF"
237-
238- pwd
239- rm -fr pnt-new
240-
241- nix --accept-flake-config run github:juspay/omnix -- init "$REPO_REF" -o pnt-new --non-interactive --params '{
242- "package-name-kebab-case": "pnt-new",
243- "package-name-snake-case": "pnt_new",
244- "monorepo-package": false,
245- "git-org": "pnt-new",
246- "author": "Pnt New",
247- "author-email": "new@pnt.org",
248- "vscode": true,
249- "github-ci": true,
250- "nix-template": false
251- }'
252-
253- cd pnt-new
254- git init
255- git config --local user.email "test@example.com"
256- git config --local user.name "Test User"
257- git commit --allow-empty -m "initial commit (empty)"
258- git add .
259-
260- # This needs to use a global uv (astral-sh/setup-uv) before entering
261- # the devshell even though uv is included in the devshell
262- nix run nixpkgs#uv -- lock
263- git add .
264-
265- nix develop --accept-flake-config -c pytest
266-
267167 test-python :
268168 needs : [set-variables]
269169 if : ${{ needs.set-variables.outputs.skip_ci != 'true' && needs.set-variables.outputs.skip_tests != 'true' }}
@@ -316,7 +216,7 @@ jobs:
316216 secrets : inherit
317217
318218 release-packages :
319- needs : [test-python, test-omnix-template, nixci]
219+ needs : [test-python, nixci]
320220 if : ${{ github.repository_owner == 'sciexp' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') }}
321221 concurrency :
322222 group : release-${{ matrix.package.name }}-${{ github.workflow }}-${{ github.ref_name }}
0 commit comments