15
15
runs-on : ubuntu-latest
16
16
strategy :
17
17
matrix :
18
- python-version : [ '3.6', '3.7', '3.8', '3.9' ]
18
+ python-version : [ '3.6', '3.7', '3.8', '3.9', '3.10' ]
19
19
services :
20
20
postgres :
21
21
image : fantix/postgres-ssl:13.1
@@ -42,19 +42,19 @@ jobs:
42
42
${{ runner.os }}-${{ matrix.python-version }}-poetry-
43
43
- name : Install Python dependencies
44
44
run : |
45
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get -poetry.py | python
46
- $HOME/.poetry /bin/poetry install
45
+ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install -poetry.py | python -
46
+ $HOME/.local /bin/poetry install
47
47
- name : Test with pytest
48
48
env :
49
49
DB_HOST : localhost
50
50
DB_USER : gino
51
51
run : |
52
- $HOME/.poetry /bin/poetry run pytest --cov=src --cov=examples --cov-fail-under=95 --cov-report xml
52
+ $HOME/.local /bin/poetry run pytest --cov=src --cov=examples --cov-fail-under=95 --cov-report xml
53
53
- name : Check code format with black
54
54
run : |
55
- $HOME/.poetry /bin/poetry run black --check src
55
+ $HOME/.local /bin/poetry run black --check src
56
56
- name : Submit coverage report
57
- if : matrix.python-version == '3.9 ' && github.ref == 'refs/heads/master'
57
+ if : matrix.python-version == '3.10 ' && github.ref == 'refs/heads/master'
58
58
env :
59
59
CODACY_PROJECT_TOKEN : ${{ secrets.CODACY_TOKEN }}
60
60
run : |
65
65
needs : test
66
66
strategy :
67
67
matrix :
68
- python-version : [ '3.8 ' ]
68
+ python-version : [ '3.10 ' ]
69
69
steps :
70
70
- name : Checkout source code
71
71
if : startsWith(github.ref, 'refs/tags/')
89
89
PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
90
90
run : |
91
91
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
92
- $HOME/.poetry /bin/poetry install
93
- $HOME/.poetry /bin/poetry build
94
- $HOME/.poetry /bin/poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}
92
+ $HOME/.local /bin/poetry install
93
+ $HOME/.local /bin/poetry build
94
+ $HOME/.local /bin/poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}
0 commit comments