Skip to content

Commit d66a4db

Browse files
Fix and udpate tests
Signed-off-by: Ayan Sinha Mahapatra <asmahapatra@aboutcode.org>
1 parent 06555fa commit d66a4db

3 files changed

Lines changed: 81 additions & 20 deletions

File tree

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: CI on Linux ARM and MacOS Intel
2+
3+
on: [push]
4+
5+
permissions: {}
6+
jobs:
7+
8+
test_on_linux_arm:
9+
permissions:
10+
contents: read # to fetch code (actions/checkout)
11+
12+
name: Test PyPI wheels on linux
13+
runs-on: ${{ matrix.os }}
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
19+
strategy:
20+
fail-fast: true
21+
matrix:
22+
os: [ubuntu-24.04-arm]
23+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
24+
25+
steps:
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
27+
with:
28+
persist-credentials: false
29+
30+
- name: Set up Python ${{ matrix.pyver }} on ${{ matrix.os }}
31+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
32+
with:
33+
python-version: ${{ matrix.pyver }}
34+
35+
- name: Configure and setup test environment
36+
run: |
37+
sudo apt update
38+
sudo chmod 0644 /boot/vmlinuz-* && sudo apt install libguestfs-tools
39+
./configure --clean && ./configure --dev-system-provided
40+
41+
- name: Run tests
42+
run: |
43+
make test
44+
45+
46+
test_on_macos_intel:
47+
permissions:
48+
contents: read # to fetch code (actions/checkout)
49+
50+
name: Test PyPI wheels on linux
51+
runs-on: ${{ matrix.os }}
52+
53+
defaults:
54+
run:
55+
shell: bash
56+
57+
strategy:
58+
fail-fast: true
59+
matrix:
60+
os: [macos-15-intel]
61+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
62+
63+
steps:
64+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
65+
with:
66+
persist-credentials: false
67+
68+
- name: Set up Python ${{ matrix.pyver }} on ${{ matrix.os }}
69+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
70+
with:
71+
python-version: ${{ matrix.pyver }}
72+
73+
- name: Configure and setup test environment
74+
run: |
75+
./configure --clean && ./configure --dev
76+
77+
- name: Install system dependencies
78+
run: |
79+
make test

azure-pipelines.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ jobs:
3333
sudo chmod 0644 /boot/vmlinuz-* && sudo apt install libguestfs-tools
3434
&& venv/bin/pytest -n 2 -vvs
3535

36-
- template: etc/ci/azure-posix-arm.yml
37-
parameters:
38-
job_name: ubuntu24_cpython_arm
39-
image_name: ubuntu-24.04-arm
40-
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
41-
test_suites:
42-
all:
43-
sudo chmod 0644 /boot/vmlinuz-* && sudo apt install libguestfs-tools
44-
&& venv/bin/pytest -n 2 -vvs
45-
4636
- template: etc/ci/azure-posix-arm.yml
4737
parameters:
4838
job_name: macos14_cpython
@@ -54,15 +44,7 @@ jobs:
5444
- template: etc/ci/azure-posix-arm.yml
5545
parameters:
5646
job_name: macos15_cpython
57-
image_name: macosS-15
58-
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
59-
test_suites:
60-
all: venv/bin/pytest -n 2 -vvs
61-
62-
- template: etc/ci/azure-posix-arm.yml
63-
parameters:
64-
job_name: macos15_cpython_intel
65-
image_name: macos-15-intel
47+
image_name: macos-15
6648
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
6749
test_suites:
6850
all: venv/bin/pytest -n 2 -vvs

etc/ci/azure-posix-arm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ parameters:
33
image_name: ''
44
python_versions: []
55
test_suites: {}
6-
python_architecture: aarch64
6+
python_architecture: x64
77

88
jobs:
99
- job: ${{ parameters.job_name }}

0 commit comments

Comments
 (0)