-
Notifications
You must be signed in to change notification settings - Fork 33
50 lines (47 loc) · 1.34 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Python Tests
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.12']
os: [ubuntu-20.04, macos-latest, windows-2019]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Deps
if: runner.os == 'Linux'
run: |
sudo dpkg --add-architecture i386
sudo apt-get install lib32stdc++-7-dev lib32z1-dev libc6-dev-i386
sudo apt-get install g++-multilib
- uses: actions/checkout@v3
- name: Unit Tests
run: |
python -m unittest discover ambuild2 "*_test.py"
- name: Smoke Tests 1
if: runner.os != 'Windows' # no choco vcvars detection on older APIs
run: |
python -m pip install .
mkdir objdir1
cd objdir1
python ../tests/staticlib/configure.py
ambuild
mkdir ../objdir2/
cd ../objdir2/
python ../tests/modules/configure.py
ambuild
- name: Smoke Tests 2
run: |
python -m pip install .
mkdir objdir3
cd objdir3
python ../tests/multiarch/configure.py
ambuild
mkdir ../objdir4/
cd ../objdir4/
python ../tests/precompiled-headers/configure.py
ambuild