-
-
Notifications
You must be signed in to change notification settings - Fork 2
93 lines (91 loc) · 2.69 KB
/
python-build.yml
File metadata and controls
93 lines (91 loc) · 2.69 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
# Name of this workflow
name: WSLWinReg for Python
# Only process when a new version is pushed on master
on:
push:
branches:
- "master"
jobs:
"Run_Pytest":
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# Here are all the operating systems and python versions to test on.
matrix:
name:
- "windows-2022-py36"
- "windows-2022-py37"
- "windows-2022-py38"
- "windows-2022-py39"
- "windows-2022-py310"
- "windows-2022-py311"
- "windows-2022-py312"
- "windows-2022-py313"
- "windows-2025-py313"
- "windows-2025-pypy310"
# Disabled pypy27 since it crashes on Github, but
# it passes locally on Windows 10
# - "windows-2025-pypy27"
# Specific data for each version being built
include:
# Windows 2022 Server
- name: "windows-2022-py36"
python: "3.6"
os: "windows-2022"
tox_env: "py36"
- name: "windows-2022-py37"
python: "3.7"
os: "windows-2022"
tox_env: "py37"
- name: "windows-2022-py38"
python: "3.8"
os: "windows-2022"
tox_env: "py38"
- name: "windows-2022-py39"
python: "3.9"
os: "windows-2022"
tox_env: "py39"
- name: "windows-2022-py310"
python: "3.10"
os: "windows-2022"
tox_env: "py310"
- name: "windows-2022-py311"
python: "3.11"
os: "windows-2022"
tox_env: "py311"
- name: "windows-2022-py312"
python: "3.12"
os: "windows-2022"
tox_env: "py312"
- name: "windows-2022-py313"
python: "3.13"
os: "windows-2022"
tox_env: "py313"
# Windows 2025 Server
- name: "windows-2025-py313"
python: "3.13"
os: "windows-2025"
tox_env: "py313"
- name: "windows-2025-pypy310"
python: "pypy3.10"
os: "windows-2025"
tox_env: "pypy3"
#- name: "windows-2025-pypy27"
# python: "pypy2.7"
# os: "windows-2025"
# tox_env: "pypy"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -V
python -m pip install --upgrade pip
pip install pytest
- name: Test with pytest
run: |
python -V
pytest