6
6
- synchronize
7
7
push :
8
8
tags :
9
- - ' v[0-9]+.[0-9]+.[0-9]+*'
9
+ - " v[0-9]+.[0-9]+.[0-9]+*"
10
10
11
11
jobs :
12
-
13
12
test-suite :
14
13
runs-on : ${{ matrix.os }}
15
14
strategy :
16
15
matrix :
17
- python-version : [3.7, 3.8, 3.9, ' 3.10' ]
16
+ python-version : [3.7, 3.8, 3.9, " 3.10", "3.11" ]
18
17
os : [ubuntu-latest, macos-latest, windows-latest]
19
18
20
19
steps :
21
- - uses : actions/checkout@v3
22
- - name : Set up Python ${{ matrix.python-version }} ${{ matrix.os }}
23
- uses : actions/setup-python@v4
24
- with :
25
- python-version : ${{ matrix.python-version }}
26
- - name : Install dependencies
27
- run : |
28
- python -m pip install --upgrade pip
29
- pip install -r requirements.txt
30
- pip install -r tests/requirements.txt
31
- - name : Test with pytest
32
- run : |
33
- pytest --cov-report= --cov=btrdb # suppress coverage report here
34
- - name : Coverage Report
35
- run : |
36
- coverage report -m
37
-
20
+ - uses : actions/checkout@v3
21
+ - name : Set up Python ${{ matrix.python-version }} ${{ matrix.os }}
22
+ uses : actions/setup-python@v4
23
+ with :
24
+ python-version : ${{ matrix.python-version }}
25
+ - name : Install dependencies
26
+ run : |
27
+ python -m pip install --upgrade pip
28
+ pip install -r requirements.txt
29
+ pip install -r tests/requirements.txt
30
+ - name : Test with pytest
31
+ run : |
32
+ pytest --cov-report= --cov=btrdb # suppress coverage report here
33
+ - name : Coverage Report
34
+ run : |
35
+ coverage report -m
38
36
39
37
release :
40
38
needs :
@@ -54,28 +52,27 @@ jobs:
54
52
draft : false
55
53
prerelease : false
56
54
57
-
58
55
deploy :
59
56
needs :
60
57
- release
61
58
if : startsWith(github.ref, 'refs/tags/')
62
59
runs-on : ubuntu-latest
63
60
64
61
steps :
65
- - uses : actions/checkout@v3
66
- - name : Set up Python
67
- uses : actions/setup-python@v4
68
- with :
69
- python-version : ' 3.8'
70
- - name : Install dependencies
71
- run : |
72
- python -m pip install --upgrade pip
73
- pip install setuptools wheel build
74
- - name : Build and publish
75
- run : |
62
+ - uses : actions/checkout@v3
63
+ - name : Set up Python
64
+ uses : actions/setup-python@v4
65
+ with :
66
+ python-version : " 3.8"
67
+ - name : Install dependencies
68
+ run : |
69
+ python -m pip install --upgrade pip
70
+ pip install setuptools wheel build
71
+ - name : Build and publish
72
+ run : |
76
73
python -m build --sdist --wheel --outdir dist/ .
77
- - name : Publish package
78
- uses : pypa/gh-action-pypi-publish@release/v1
79
- with :
80
- user : __token__
81
- password : ${{ secrets.PYPI_DEPLOYMENT_TOKEN }}
74
+ - name : Publish package
75
+ uses : pypa/gh-action-pypi-publish@release/v1
76
+ with :
77
+ user : __token__
78
+ password : ${{ secrets.PYPI_DEPLOYMENT_TOKEN }}
0 commit comments