1717# job.
1818strategy :
1919matrix :
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
2230
2331runs-on : ${{matrix.os }}
2432
@@ -27,23 +35,23 @@ jobs:
2735shell : bash
2836
2937steps :
30- - uses : actions/checkout@v1
38+ - uses : actions/checkout@v2
3139with :
3240fetch-depth : 50
3341submodules : true
3442
3543 - name : Check if release PR.
3644uses : edgedb/action-release/validate-pr@master
37- continue-on-error : true
3845id : release
3946with :
4047github_token : ${{secrets.RELEASE_BOT_GITHUB_TOKEN }}
48+ missing_version_ok : yes
4149version_file : asyncpg/_version.py
4250version_line_pattern : |
4351 __version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"])
4452
4553 - name : Set up Python ${{matrix.python-version }}
46- uses : actions/setup-python@v1
54+ uses : actions/setup-python@v2
4755if : steps.release.outputs.version == 0
4856with :
4957python-version : ${{matrix.python-version }}
@@ -56,28 +64,29 @@ jobs:
5664 - name : Install Python Deps
5765if : steps.release.outputs.version == 0
5866run : |
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]
6169
6270 - name : Test
6371if : steps.release.outputs.version == 0
72+ env :
73+ LOOP_IMPL : ${{matrix.loop }}
6474run : |
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
7180
7281test-postgres :
7382strategy :
7483matrix :
7584postgres-version : [9.5, 9.6, 10, 11, 12, 13]
7685
77- runs-on : ubuntu-20.04
86+ runs-on : ubuntu-latest
7887
7988steps :
80- - uses : actions/checkout@v1
89+ - uses : actions/checkout@v2
8190with :
8291fetch-depth : 50
8392submodules : true
@@ -104,7 +113,7 @@ jobs:
104113 >> "${GITHUB_ENV}"
105114
106115 - name : Set up Python ${{matrix.python-version }}
107- uses : actions/setup-python@v1
116+ uses : actions/setup-python@v2
108117if : steps.release.outputs.version == 0
109118with :
110119python-version : ${{matrix.python-version }}
@@ -127,7 +136,7 @@ jobs:
127136regression-tests :
128137name : " Regression Tests"
129138needs : [test-platforms, test-postgres]
130- runs-on : ubuntu-20.04
139+ runs-on : ubuntu-latest
131140
132141steps :
133142 - run : echo OK
0 commit comments