17
17
# job.
18
18
strategy :
19
19
matrix :
20
- python-version : [3.6, 3.7, 3.8, 3.9]
21
- os : [ubuntu-latest, macos-latest, windows-latest]
20
+ python-version : [3.6, 3.7, 3.8, 3.9, 3.10.0-beta.4]
21
+ os : [ubuntu-latest, macos-latest, windows-latest]
22
+ loop : [asyncio, uvloop]
23
+ exclude :
24
+ # uvloop does not support Python 3.6
25
+ - loop : uvloop
26
+ python-version : 3.6
27
+ # uvloop does not support windows
28
+ - loop : uvloop
29
+ os : windows-latest
22
30
23
31
runs-on : ${{ matrix.os }}
24
32
@@ -27,23 +35,23 @@ jobs:
27
35
shell : bash
28
36
29
37
steps :
30
- - uses : actions/checkout@v1
38
+ - uses : actions/checkout@v2
31
39
with :
32
40
fetch-depth : 50
33
41
submodules : true
34
42
35
43
- name : Check if release PR.
36
44
uses : edgedb/action-release/validate-pr@master
37
- continue-on-error : true
38
45
id : release
39
46
with :
40
47
github_token : ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
48
+ missing_version_ok : yes
41
49
version_file : asyncpg/_version.py
42
50
version_line_pattern : |
43
51
__version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"])
44
52
45
53
- name : Set up Python ${{ matrix.python-version }}
46
- uses : actions/setup-python@v1
54
+ uses : actions/setup-python@v2
47
55
if : steps.release.outputs.version == 0
48
56
with :
49
57
python-version : ${{ matrix.python-version }}
@@ -56,28 +64,29 @@ jobs:
56
64
- name : Install Python Deps
57
65
if : steps.release.outputs.version == 0
58
66
run : |
59
- python -m pip install -U pip setuptools
60
- pip install -e .[test]
67
+ python -m pip install -U pip setuptools wheel
68
+ python -m pip install -e .[test]
61
69
62
70
- name : Test
63
71
if : steps.release.outputs.version == 0
72
+ env :
73
+ LOOP_IMPL : ${{ matrix.loop }}
64
74
run : |
65
- python setup.py test
66
-
67
- - name : Test under uvloop
68
- if : steps.release.outputs.version == 0 && matrix.os != 'windows-latest' && matrix.python-version != '3.9'
69
- run : |
70
- env USE_UVLOOP=1 python setup.py test
75
+ if [ "${LOOP_IMPL}" = "uvloop" ]; then
76
+ env USE_UVLOOP=1 python setup.py test
77
+ else
78
+ python setup.py test
79
+ fi
71
80
72
81
test-postgres :
73
82
strategy :
74
83
matrix :
75
84
postgres-version : [9.5, 9.6, 10, 11, 12, 13]
76
85
77
- runs-on : ubuntu-20.04
86
+ runs-on : ubuntu-latest
78
87
79
88
steps :
80
- - uses : actions/checkout@v1
89
+ - uses : actions/checkout@v2
81
90
with :
82
91
fetch-depth : 50
83
92
submodules : true
@@ -104,7 +113,7 @@ jobs:
104
113
>> "${GITHUB_ENV}"
105
114
106
115
- name : Set up Python ${{ matrix.python-version }}
107
- uses : actions/setup-python@v1
116
+ uses : actions/setup-python@v2
108
117
if : steps.release.outputs.version == 0
109
118
with :
110
119
python-version : ${{ matrix.python-version }}
@@ -127,7 +136,7 @@ jobs:
127
136
regression-tests :
128
137
name : " Regression Tests"
129
138
needs : [test-platforms, test-postgres]
130
- runs-on : ubuntu-20.04
139
+ runs-on : ubuntu-latest
131
140
132
141
steps :
133
142
- run : echo OK
0 commit comments