58
58
os : ' ubuntu-latest'
59
59
- name : ' py311 (macos)'
60
60
python : ' 3.11'
61
- python_arch : ' arm64' # Correct architecture for macos-latest
61
+ python_arch : ' arm64'
62
62
tox_env : ' py311'
63
63
os : ' macos-latest'
64
64
- name : ' py311 (windows)'
@@ -95,32 +95,24 @@ jobs:
95
95
- uses : actions/checkout@v4
96
96
with :
97
97
fetch-depth : 0
98
-
99
- - name : Set up Python
100
- uses : actions/setup-python@v5
98
+ - uses : actions/setup-python@v5
101
99
id : setup
102
100
with :
103
101
python-version : ${{ matrix.python }}
104
102
architecture : ${{ matrix.python_arch }}
105
103
106
- - name : install dependencies
107
- run : |
108
- ${{ steps.setup.outputs.python-path }} -mpip install --upgrade pip
109
- ${{ steps.setup.outputs.python-path }} -mpip install --progress-bar=off -r ci/requirements.txt
110
- virtualenv --version
111
- pip --version
112
- tox --version
113
- pip list --format=freeze
114
-
115
104
- name : test
116
- env :
117
- TOXPYTHON : ${{ steps.setup.outputs.python-path }}
118
- run : >
105
+ shell : zsh {0}
106
+ run : |
107
+ ${{ steps.setup.outputs.python-path }} -m venv .venv
108
+ source .venv/bin/activate
109
+ python -m pip install --upgrade pip
110
+ pip install -r ci/requirements.txt
119
111
tox -e ${{ matrix.tox_env }} -v
120
112
121
113
coveralls :
122
114
name : Upload coverage to Coveralls
123
- if : github.ref == 'refs/heads/main' # Prevent from running on PRs, tags
115
+ if : github.ref == 'refs/heads/main'
124
116
needs : test
125
117
runs-on : ubuntu-latest
126
118
steps :
@@ -132,25 +124,18 @@ jobs:
132
124
with :
133
125
python-version : ' 3.11'
134
126
architecture : ' x64'
135
- - name : install dependencies
136
- run : |
137
- ${{ steps.setup.outputs.python-path }} -mpip install --upgrade pip
138
- ${{ steps.setup.outputs.python-path }} -mpip install --progress-bar=off -r ci/requirements.txt
139
- virtualenv --version
140
- pip --version
141
- tox --version
142
- pip list --format=freeze
143
127
- name : generate coverage report
144
- env :
145
- TOXPYTHON : ' 3.11'
146
- # TOXPYTHON: ${{ steps.setup.outputs.python-path }}
128
+ shell : zsh {0}
147
129
run : |
130
+ ${{ steps.setup.outputs.python-path }} -m venv .venv
131
+ source .venv/bin/activate
132
+ python -m pip install --upgrade pip
133
+ pip install -r ci/requirements.txt
148
134
tox -e py311
149
135
150
136
- name : Coveralls GitHub Action
151
137
uses :
coverallsapp/[email protected]
152
138
153
-
154
139
deploy_docs :
155
140
name : Deploy docs to GitHub Pages
156
141
if : github.ref == 'refs/heads/main' # Prevent from running on PRs, tags
@@ -168,25 +153,18 @@ jobs:
168
153
with :
169
154
python-version : ' 3.11'
170
155
architecture : ' x64'
171
- - name : install dependencies
172
- run : |
173
- ${{ steps.setup.outputs.python-path }} -mpip install --upgrade pip
174
- ${{ steps.setup.outputs.python-path }} -mpip install --progress-bar=off -r ci/requirements.txt
175
- virtualenv --version
176
- pip --version
177
- tox --version
178
- pip list --format=freeze
179
156
180
157
- name : generate docs
181
- env :
182
- TOXPYTHON : ' 3.11'
183
- # TOXPYTHON: ${{ steps.setup.outputs.python-path }}
158
+ shell : zsh {0}
184
159
run : |
160
+ ${{ steps.setup.outputs.python-path }} -m venv .venv
161
+ source .venv/bin/activate
162
+ python -m pip install --upgrade pip
163
+ pip install -r ci/requirements.txt
185
164
tox -e docs -v
186
- ls -l dist/docs
187
165
cp -r dist/docs _site/
188
166
189
- - name : fix permissions # https://github.com/actions/upload-pages-artifact#file-permissions
167
+ - name : Fix permissions # https://github.com/actions/upload-pages-artifact#file-permissions
190
168
run : |
191
169
chmod -c -R +rX "_site/" | while read line; do
192
170
echo "::warning title=Invalid file permissions automatically fixed::$line"
0 commit comments