Skip to content

Commit 4b6a457

Browse files
authored
Create test.yml
1 parent 3147817 commit 4b6a457

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/test.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Tests on Windows runner-1
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
8+
env:
9+
MAIN_BRANCH_URL: "https://raw.githubusercontent.com/liquidcarbon/puppy/main/"
10+
PYTHONIOENCODING: "utf8" # https://github.com/pallets/click/issues/2121
11+
PATH: "C:\\Users\\runneradmin\\.pixi\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Git\\bin"
12+
13+
jobs:
14+
puppy-win-311:
15+
runs-on: windows-latest
16+
if: "!contains(github.event.head_commit.message, 'nogha')"
17+
steps:
18+
- name: check PATH, install git
19+
run: |
20+
choco install git
21+
echo $PATH
22+
echo $GITHUB_ENV
23+
- name: Install puppy 3.11
24+
run: |
25+
sleep 9; # give it time to update MAIN_BRANCH_URL
26+
& ([scriptblock]::Create((iwr -useb $env:MAIN_BRANCH_URL/pup.ps1).Content)) 3.11
27+
- name: new env with pup new
28+
run: |
29+
pup new t1/with/nesting
30+
pup add t1/with/nesting "cowsay<6"
31+
- name: new env with pup add from another folder
32+
run: |
33+
cd t1
34+
pup add t2 cowsay requests
35+
pup list
36+
- name: pup remove
37+
run: |
38+
pup remove t1/with/nesting cowsay
39+
pup list
40+
- name: pup clone
41+
run: |
42+
pup clone https://github.com/liquidcarbon/affinity.git
43+
git clone https://github.com/liquidcarbon/affinity.git
44+
pup new affinity
45+
pixi run uv sync --project affinity
46+
pup list
47+
affinity/.venv/Scripts/pytest -vvsx affinity/
48+
- name: import pup with fetch
49+
run: |
50+
pixi run python -c 'import pup; pup.fetch("t1/with/nesting", "httpx"); import httpx; print(httpx.get("https://example.com"))'
51+
- name: pup update after deleting pixi.exe
52+
run: |
53+
rm C:\\Users\\runneradmin\\.pixi\\bin\\pixi.exe
54+
pup update

0 commit comments

Comments
 (0)