@@ -19,17 +19,17 @@ jobs:
19
19
fail-fast : false
20
20
steps :
21
21
- name : Checkout working copy
22
- uses : actions/checkout@v3
22
+ uses : actions/checkout@v4
23
23
- name : ruff check
24
24
uses : chartboost/ruff-action@v1
25
25
- name : ruff format
26
26
uses : chartboost/ruff-action@v1
27
27
with :
28
28
args : format --diff
29
29
- name : Set up Python
30
- uses : actions/setup-python@v4
30
+ uses : actions/setup-python@v5
31
31
with :
32
- python-version : " 3.11 "
32
+ python-version : " 3.x "
33
33
- name : Install mypy
34
34
run : |
35
35
python -mpip install --upgrade pip
@@ -44,13 +44,13 @@ jobs:
44
44
45
45
steps :
46
46
- name : Checkout working copy
47
- uses : actions/checkout@v3
47
+ uses : actions/checkout@v4
48
48
with :
49
49
submodules : true
50
50
- name : Set up Python
51
- uses : actions/setup-python@v4
51
+ uses : actions/setup-python@v5
52
52
with :
53
- python-version : " 3.11 "
53
+ python-version : " 3.x "
54
54
- name : Install dependency
55
55
run : |
56
56
python -mpip install --upgrade pip
@@ -59,14 +59,14 @@ jobs:
59
59
run : |
60
60
python -mbuild
61
61
- name : Upload sdist
62
- uses : actions/upload-artifact@v3
62
+ uses : actions/upload-artifact@v4
63
63
with :
64
64
name : sdist
65
65
path : dist/*.tar.gz
66
66
retention-days : 1
67
67
68
68
- name : Upload wheel
69
- uses : actions/upload-artifact@v3
69
+ uses : actions/upload-artifact@v4
70
70
with :
71
71
name : wheel
72
72
path : dist/*.whl
@@ -94,40 +94,52 @@ jobs:
94
94
- " pypy-3.9"
95
95
- " pypy-3.10"
96
96
# - "pypy-3.11"
97
+ # don't enable graal because it's slower than even pypy and
98
+ # fails because oracle/graalpython#385
99
+ # - "graalpy-23"
97
100
include :
98
101
- source : sdist
99
102
artifact : dist/*.tar.gz
100
103
- source : wheel
101
104
artifact : dist/*.whl
102
105
steps :
103
106
- name : Checkout working copy
104
- uses : actions/checkout@v3
107
+ uses : actions/checkout@v4
105
108
with :
106
109
submodules : true
107
110
- name : Set up Python ${{ matrix.python-version }}
108
- uses : actions/setup-python@v4
111
+ uses : actions/setup-python@v5
109
112
with :
110
113
python-version : ${{ matrix.python-version }}
111
114
allow-prereleases : true
112
115
- name : Install test dependencies
113
116
run : |
114
117
python -mpip install --upgrade pip
115
- # if binary wheels are not available for the current package install libyaml
116
- # NB: cyaml is outright broken on pypy so exclude that
118
+ # cyaml is outright broken on pypy
117
119
if ! ${{ startsWith(matrix.python-version, 'pypy-') }}; then
120
+ # if binary wheels are not available for the current
121
+ # package install libyaml-dev so we can install pyyaml
122
+ # from source
118
123
if ! pip download --only-binary pyyaml -rrequirements_dev.txt > /dev/null 2>&1; then
119
124
sudo apt install libyaml-dev
120
125
fi
121
126
fi
122
127
python -mpip install pytest pyyaml
128
+
129
+ # re2 is basically impossible to install from source so don't
130
+ # bother, and suppress installation failure so the test does
131
+ # not fail (re2 tests will just be skipped for versions /
132
+ # implementations for which google does not provide a binary
133
+ # wheel)
134
+ python -mpip install --only-binary :all: google-re2 || true
123
135
- name : download ${{ matrix.source }} artifact
124
136
if : matrix.artifact
125
- uses : actions/download-artifact@v3
137
+ uses : actions/download-artifact@v4
126
138
with :
127
139
name : ${{ matrix.source }}
128
140
path : dist/
129
141
- name : install package in environment
130
142
run : |
131
143
pip install ${{ matrix.artifact || '.' }}
132
144
- name : run tests
133
- run : pytest -v -Werror -Wignore::ImportWarning --doctest-glob="*.rst"
145
+ run : pytest -v -Werror -Wignore::ImportWarning --doctest-glob="*.rst" -ra
0 commit comments