Skip to content

Commit ed4253c

Browse files
committed
update CI
1 parent f7e6516 commit ed4253c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
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' ]
1919
services:
2020
postgres:
2121
image: fantix/postgres-ssl:13.1
@@ -42,19 +42,19 @@ jobs:
4242
${{ runner.os }}-${{ matrix.python-version }}-poetry-
4343
- name: Install Python dependencies
4444
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
4747
- name: Test with pytest
4848
env:
4949
DB_HOST: localhost
5050
DB_USER: gino
5151
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
5353
- name: Check code format with black
5454
run: |
55-
$HOME/.poetry/bin/poetry run black --check src
55+
$HOME/.local/bin/poetry run black --check src
5656
- 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'
5858
env:
5959
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_TOKEN }}
6060
run: |
@@ -65,7 +65,7 @@ jobs:
6565
needs: test
6666
strategy:
6767
matrix:
68-
python-version: [ '3.8' ]
68+
python-version: [ '3.10' ]
6969
steps:
7070
- name: Checkout source code
7171
if: startsWith(github.ref, 'refs/tags/')
@@ -89,6 +89,6 @@ jobs:
8989
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
9090
run: |
9191
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

Comments
 (0)