Skip to content

Commit a5ece39

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

3 files changed

Lines changed: 79 additions & 58 deletions

File tree

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: CI on Linux ARM and MacOS Intel
2+
3+
on: [push, pull_request]
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 chmod 0644 /boot/vmlinuz-* && sudo apt install libguestfs-tools
38+
./configure --clean && ./configure --dev-system-provided
39+
40+
- name: Run tests
41+
run: |
42+
make test
43+
44+
45+
test_on_macos_intel:
46+
permissions:
47+
contents: read # to fetch code (actions/checkout)
48+
49+
name: Test PyPI wheels on linux
50+
runs-on: ${{ matrix.os }}
51+
52+
defaults:
53+
run:
54+
shell: bash
55+
56+
strategy:
57+
fail-fast: true
58+
matrix:
59+
os: [macos-15-intel]
60+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
61+
62+
steps:
63+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
64+
with:
65+
persist-credentials: false
66+
67+
- name: Set up Python ${{ matrix.pyver }} on ${{ matrix.os }}
68+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
69+
with:
70+
python-version: ${{ matrix.pyver }}
71+
72+
- name: Configure and setup test environment
73+
run: |
74+
./configure --clean && ./configure --dev
75+
76+
- name: Install system dependencies
77+
run: |
78+
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: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)