-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (91 loc) · 2.71 KB
/
test-package.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
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
name: Test package
on:
workflow_call:
workflow_dispatch:
push:
branches: ["main", "tester/*"]
pull_request:
branches: ["main"]
jobs:
test-package:
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [
"ubuntu-python-3-8",
"ubuntu-python-3-9",
"ubuntu-python-3-10",
"ubuntu-python-3-11",
"ubuntu-python-3-12",
"windows-python-3-8",
"windows-python-3-9",
"windows-python-3-10",
"windows-python-3-11",
"windows-python-3-12",
"macos-python-3-8",
"macos-python-3-9",
"macos-python-3-10",
"macos-python-3-11",
"macos-python-3-12"
]
include:
- name: "ubuntu-python-3-8"
python-version: "3.8"
os: ubuntu-latest
- name: "ubuntu-python-3-9"
python-version: "3.9"
os: ubuntu-latest
- name: "ubuntu-python-3-10"
python-version: "3.10"
os: ubuntu-latest
- name: "ubuntu-python-3-11"
python-version: "3.11"
os: ubuntu-latest
- name: "ubuntu-python-3-12"
python-version: "3.12"
os: ubuntu-latest
- name: "windows-python-3-8"
python-version: "3.8"
os: windows-latest
- name: "windows-python-3-9"
python-version: "3.9"
os: windows-latest
- name: "windows-python-3-10"
python-version: "3.10"
os: windows-latest
- name: "windows-python-3-11"
python-version: "3.11"
os: windows-latest
- name: "windows-python-3-12"
python-version: "3.12"
os: windows-latest
- name: "macos-python-3-8"
python-version: "3.8"
os: macos-13
- name: "macos-python-3-9"
python-version: "3.9"
os: macos-13
- name: "macos-python-3-10"
python-version: "3.10"
os: macos-latest
- name: "macos-python-3-11"
python-version: "3.11"
os: macos-latest
- name: "macos-python-3-12"
python-version: "3.12"
os: macos-latest
env:
INTERPRETER: python
PIP: python -m pip
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install local package
run: make install-local-package
- name: Install requirements
run: make install-requirements && make install-test-requirements
- name: Test package
run: make test-package