Skip to content

Commit 12e8579

Browse files
committed
chore: CI config
1 parent 54c8bc9 commit 12e8579

File tree

5 files changed

+52
-50
lines changed

5 files changed

+52
-50
lines changed

.builds/alpine.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ packages:
2121
- py3-nox
2222
- uv
2323
# Docker (not working)
24-
# - buildah
25-
# - netavark
26-
# - docker
24+
- buildah
25+
- netavark
26+
- docker
2727

2828
tasks:
2929
- setup: |
@@ -32,25 +32,24 @@ tasks:
3232
3333
- lint: |
3434
cd hop3
35-
just lint
35+
uv run make lint
3636
3737
- test: |
3838
cd hop3
39-
just test
39+
uv run make test
4040
4141
- nox: |
4242
cd hop3
43-
nox -e pytest-3.12
44-
nox -e lint
43+
nox -P 3.12
4544
46-
# - buildah: |
47-
# cd hop3
48-
# sudo buildah build .
49-
50-
# - docker-build: |
51-
# cd hop3
52-
# sudo docker build .
45+
- buildah: |
46+
cd hop3
47+
sudo buildah build .
5348
54-
- e2e-docker: |
49+
- docker-build: |
5550
cd hop3
56-
hop3-test ci
51+
sudo docker build .
52+
53+
# - e2e-docker: |
54+
# cd hop3
55+
# hop3-test ci

.builds/rockylinux.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ packages:
2929

3030
tasks:
3131
- setup: |
32-
sudo pip3.12 install -U uv nox
3332
cd hop3
33+
sudo pip3.12 install -U uv nox
3434
uv sync
3535
3636
- nox: |
3737
cd hop3
38-
nox -e lint
39-
nox -e pytest-3.12
40-
nox -e pytest-3.11
38+
uv run nox -e lint
39+
uv nox -P 3.12
40+
uv nox -P 3.11
4141
4242
- buildah: |
4343
cd hop3
4444
buildah build .
4545
46-
- e2e-docker: |
47-
cd hop3
48-
hop3-test ci
46+
# - e2e-docker: |
47+
# cd hop3
48+
# hop3-test ci

.builds/ubuntu2204.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,30 @@ packages:
3535

3636
tasks:
3737
- setup: |
38-
# No '--break-system-packages' on 22.04
39-
sudo pip install -U uv nox
4038
cd hop3
39+
sudo pip install --break-system-packages -U uv
4140
uv sync
4241
42+
- lint: |
43+
cd hop3
44+
uv run make lint
45+
4346
- test: |
4447
cd hop3
4548
# Ensure HOP3_DEV_HOST is not set for c_system tests (they use Docker)
4649
unset HOP3_DEV_HOST
4750
sudo chmod 666 /var/run/docker.sock
4851
uv run make test
4952
50-
- e2e-docker: |
53+
- nox: |
54+
cd hop3
55+
sudo chmod 666 /var/run/docker.sock
56+
uv run nox -P 3.12
57+
58+
- buildah: |
5159
cd hop3
52-
hop3-test ci
60+
buildah build .
5361
54-
- e2e: |
62+
- docker-build: |
5563
cd hop3
56-
export HOP3_DEV_HOST=ssh.hop-dev.abilian.com
57-
export HOP3_TEST_DOMAIN=hop-dev.abilian.com
58-
ssh -o StrictHostKeyChecking=accept-new root@$HOP3_DEV_HOST 'echo hello'
59-
git config --global init.defaultBranch main
60-
git config --global user.email "you@example.com"
61-
git config --global user.name "Your Name"
62-
uv run make test-e2e
64+
sudo docker build .

.builds/ubuntu2404.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ packages:
3939

4040
tasks:
4141
- setup: |
42-
sudo pip install --break-system-packages -U uv nox
4342
cd hop3
43+
sudo pip install --break-system-packages -U uv
4444
uv sync
4545
4646
- lint: |
@@ -57,7 +57,7 @@ tasks:
5757
- nox: |
5858
cd hop3
5959
sudo chmod 666 /var/run/docker.sock
60-
uv run nox -e pytest-3.12
60+
uv run nox -P 3.12
6161
6262
- buildah: |
6363
cd hop3
@@ -67,16 +67,16 @@ tasks:
6767
cd hop3
6868
sudo docker build .
6969
70-
- e2e-docker: |
71-
cd hop3
72-
hop3-test ci
70+
# - e2e-docker: |
71+
# cd hop3
72+
# hop3-test ci
7373

74-
- e2e: |
75-
cd hop3
76-
export HOP3_DEV_HOST=ssh.hop-dev.abilian.com
77-
export HOP3_TEST_DOMAIN=hop-dev.abilian.com
78-
ssh -o StrictHostKeyChecking=accept-new root@$HOP3_DEV_HOST 'echo hello'
79-
git config --global init.defaultBranch main
80-
git config --global user.email "you@example.com"
81-
git config --global user.name "Your Name"
82-
uv run make test-e2e
74+
# - e2e: |
75+
# cd hop3
76+
# export HOP3_DEV_HOST=ssh.hop-dev.abilian.com
77+
# export HOP3_TEST_DOMAIN=hop-dev.abilian.com
78+
# ssh -o StrictHostKeyChecking=accept-new root@$HOP3_DEV_HOST 'echo hello'
79+
# git config --global init.defaultBranch main
80+
# git config --global user.email "you@example.com"
81+
# git config --global user.name "Your Name"
82+
# uv run make test-e2e

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ def doc(session: nox.Session) -> None:
7676
# Utils
7777
#
7878
def uv_sync(session: nox.Session):
79-
session.run("uv", "sync", "--all-groups", "--all-extras", "--active", external=True)
79+
session.run("uv", "sync", "--active", external=True)
80+
# session.run("uv", "sync", "--all-groups", "--all-extras", "--active", external=True)
8081

8182

8283
def run_subsession(session, sub_repo) -> None:

0 commit comments

Comments
 (0)