-
Notifications
You must be signed in to change notification settings - Fork 2
105 lines (89 loc) · 2.97 KB
/
Copy pathrun_test.yml
File metadata and controls
105 lines (89 loc) · 2.97 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Run Tests
on:
push:
branches:
- 'main'
pull_request:
jobs:
run-tests:
name: "Test (${{matrix.os}}, Python ${{ matrix.python-version }}, ${{ matrix.architecture }})"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-13, windows-latest, windows-11-arm]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
architecture: [x64, x86, arm64]
exclude:
- os: ubuntu-latest
architecture: x86
- os: ubuntu-latest
architecture: arm64
- os: ubuntu-24.04-arm
architecture: x86
- os: ubuntu-24.04-arm
architecture: x64
- os: macos-latest
architecture: x86
- os: macos-latest
architecture: x64
- os: macos-13
architecture: x86
- os: macos-13
architecture: arm64
- os: windows-latest
architecture: arm64
- os: windows-11-arm
architecture: x64
- os: windows-11-arm
architecture: x86
- os: windows-11-arm
architecture: arm64
python-version: "3.8"
- os: windows-11-arm
architecture: arm64
python-version: "3.9"
- os: windows-11-arm
architecture: arm64
python-version: "3.10"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install Python requirements
run: pip install --upgrade --upgrade-strategy eager .[dev]
- name: Run tests
run: pytest
- name: Generate coverage report
run: |
coverage run -m pytest
coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
run-tests-android:
name: "Test android"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: find_system_fonts_filename_repos
- name: Download chaquo/python
run: curl -O https://repo.maven.apache.org/maven2/com/chaquo/python/python/3.13.5/python-3.13.5-x86_64-linux-android.tar.gz
- name: Extract chaquo/python
run: |
mkdir chaquo_python
tar -xvzf python-3.13.5-x86_64-linux-android.tar.gz -C chaquo_python
- name: Create android-site-packages
run: >
pip install --only-binary=:all: --platform x86_64_linux_android --target "../android-site-packages" .[dev]
working-directory: find_system_fonts_filename_repos
- name: Run tests
run: |
./chaquo_python/android.py test --managed maxVersion --site-packages android-site-packages --cwd find_system_fonts_filename_repos -m pytest