1
1
name : Test and Deploy
2
2
on :
3
3
pull_request :
4
- branches :
5
- - main
6
4
push :
7
5
8
6
env :
9
- FORCE_COLOR : 1
7
+ FORCE_COLOR : " 1 "
10
8
11
9
jobs :
12
10
check :
20
18
- uses : actions/checkout@v4
21
19
- uses : actions/setup-python@v5
22
20
with :
23
- python-version : ' 3.x '
21
+ python-version : " 3 "
24
22
cache : pip
25
23
cache-dependency-path : .github/workflows/workflow.yml
26
24
- name : Black
37
35
- name : Set up Python
38
36
uses : actions/setup-python@v5
39
37
with :
40
- python-version : " 3.8 "
38
+ python-version : " 3.9 "
41
39
cache : pip
42
40
cache-dependency-path : |
43
41
.github/workflows/workflow.yml
@@ -69,18 +67,35 @@ jobs:
69
67
strategy :
70
68
fail-fast : false
71
69
matrix :
72
- python-version : ['pypy3.9', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
73
- sphinx-version : ['>=5,<6', '>=6a0,<7', '>=7,<8', '>=8,<9']
74
- os : [windows-latest, macos-latest, ubuntu-latest]
70
+ python-version :
71
+ - " pypy3.9"
72
+ - " 3.9"
73
+ - " 3.10"
74
+ - " 3.11"
75
+ - " 3.12"
76
+ - " 3.13"
77
+ sphinx-version :
78
+ - " >=5,<6"
79
+ - " >=6a0,<7"
80
+ - " >=7,<8"
81
+ - " >=8,<9"
82
+ os :
83
+ - windows-latest
84
+ - macos-latest
85
+ - ubuntu-latest
75
86
exclude :
76
- - python-version : ' 3.8'
77
- sphinx-version : ' >=8,<9'
78
- - python-version : ' 3.9'
79
- sphinx-version : ' >=8,<9'
80
- - python-version : ' pypy3.9'
81
- sphinx-version : ' >=8,<9'
82
- - python-version : ' 3.13'
83
- sphinx-version : ' >=5,<6'
87
+ - python-version : " 3.9"
88
+ sphinx-version : " >=8,<9"
89
+ - python-version : " pypy3.9"
90
+ sphinx-version : " >=6,<7"
91
+ os : " macos-latest"
92
+ - python-version : " pypy3.9"
93
+ sphinx-version : " >=7,<8"
94
+ os : " macos-latest"
95
+ - python-version : " pypy3.9"
96
+ sphinx-version : " >=8,<9"
97
+ - python-version : " 3.13"
98
+ sphinx-version : " >=5,<6"
84
99
steps :
85
100
- uses : actions/checkout@v4
86
101
- name : Set up Python ${{ matrix.python-version }}
@@ -111,7 +126,7 @@ jobs:
111
126
python -m pytest -vv
112
127
- name : Install matplotlib
113
128
run : |
114
- python -m pip install matplotlib
129
+ python -m pip install --only-binary :all: matplotlib
115
130
- name : Run tests with matplotlib for ${{ matrix.python-version }}
116
131
run : |
117
132
python -m pytest -vv
@@ -125,7 +140,7 @@ jobs:
125
140
- name : Setup Python
126
141
uses : actions/setup-python@v5
127
142
with :
128
- python-version : ' 3.x '
143
+ python-version : " 3 "
129
144
cache : pip
130
145
cache-dependency-path : docs/requirements.txt
131
146
- name : Install dependencies
0 commit comments