Skip to content

Commit 02da67c

Browse files
authored
Update gitclone.yml
1 parent 4e5861c commit 02da67c

File tree

1 file changed

+44
-27
lines changed

1 file changed

+44
-27
lines changed

.github/workflows/gitclone.yml

Lines changed: 44 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,44 +15,61 @@ jobs:
1515
runs-on: windows-latest
1616
if: "!contains(github.event.head_commit.message, 'nogha')"
1717
steps:
18-
# Step 1: Install Chocolatey
18+
# Install Chocolatey
1919
- name: Install Chocolatey
2020
run: |
21-
Set-ExecutionPolicy Bypass -Scope Process -Force
22-
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
21+
Set-ExecutionPolicy Bypass -Scope Process -Force; # Allow script execution
22+
iwr https://community.chocolatey.org/install.ps1 -UseBasicP | iex # Download and install Chocolatey
23+
$env:PATH += ";C:\ProgramData\chocolatey\bin" # Add Chocolatey to PATH
2324
24-
# Step 2: Verify Chocolatey Installation
25-
- name: Verify Chocolatey Installation
25+
# Install Git using Chocolatey
26+
- name: Install Git using Chocolatey
2627
run: |
28+
choco install git -y
2729
choco --version
28-
echo "Chocolatey path: $env:PATH"
29-
30-
# Step 3: Ensure the environment is updated after Chocolatey installation
31-
- name: Refresh environment for Chocolatey
30+
echo $env:PATH
31+
32+
# Install puppy 3.11
33+
- name: Install puppy 3.11
3234
run: |
33-
refreshenv
34-
35-
# Step 4: Verify PATH after refreshing environment
36-
- name: Verify PATH and Check choco in PATH
35+
sleep 9 # give it time to update MAIN_BRANCH_URL
36+
& ([scriptblock]::Create((iwr -useb $env:MAIN_BRANCH_URL/pup.ps1).Content)) 3.11
37+
38+
# Create new env with pup new
39+
- name: new env with pup new
3740
run: |
38-
echo "PATH after refreshenv: $env:PATH"
39-
where choco # This will verify if 'choco' is found in the PATH
41+
pup new t1/with/nesting
42+
pup add t1/with/nesting "cowsay<6"
4043
41-
# Step 5: Install Git using Chocolatey
42-
- name: Install Git using Chocolatey
44+
# Create new env with pup add from another folder
45+
- name: new env with pup add from another folder
4346
run: |
44-
choco install git -y
47+
cd t1
48+
pup add t2 cowsay requests
49+
pup list
4550
46-
# Step 6: Verify Git Installation
47-
- name: Verify Git Installation
51+
# Pup remove
52+
- name: pup remove
4853
run: |
49-
git --version
50-
echo "PATH after installing Git: $env:PATH"
54+
pup remove t1/with/nesting cowsay
55+
pup list
5156
52-
# Step 7: Install puppy 3.11
53-
- name: Install puppy 3.11
57+
# Pup clone
58+
- name: pup clone
5459
run: |
55-
sleep 9 # give it time to update MAIN_BRANCH_URL
56-
& ([scriptblock]::Create((iwr -useb $env:MAIN_BRANCH_URL/pup.ps1).Content)) 3.11
60+
pup clone https://github.com/liquidcarbon/affinity.git
61+
pup new affinity
62+
pixi run uv sync --project affinity
63+
pup list
64+
affinity/.venv/bin/pytest -vvsx affinity/
5765
58-
# Other steps...
66+
# Import pup with fetch
67+
- name: import pup with fetch
68+
run: |
69+
pixi run python -c 'import pup; pup.fetch("t1/with/nesting", "httpx"); import httpx; print(httpx.get("https://example.com"))'
70+
71+
# Pup update after deleting pixi.exe
72+
- name: pup update after deleting pixi.exe
73+
run: |
74+
rm C:\\Users\\runneradmin\\.pixi\\bin\\pixi.exe
75+
pup update

0 commit comments

Comments
 (0)