Skip to content

Commit 7e69f1d

Browse files
authored
Include 3.11 for testing. (#74)
1 parent d88292f commit 7e69f1d

File tree

1 file changed

+34
-37
lines changed

1 file changed

+34
-37
lines changed

.github/workflows/release.yaml

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,33 @@ on:
66
- synchronize
77
push:
88
tags:
9-
- 'v[0-9]+.[0-9]+.[0-9]+*'
9+
- "v[0-9]+.[0-9]+.[0-9]+*"
1010

1111
jobs:
12-
1312
test-suite:
1413
runs-on: ${{ matrix.os }}
1514
strategy:
1615
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"]
1817
os: [ubuntu-latest, macos-latest, windows-latest]
1918

2019
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
3836
3937
release:
4038
needs:
@@ -54,28 +52,27 @@ jobs:
5452
draft: false
5553
prerelease: false
5654

57-
5855
deploy:
5956
needs:
6057
- release
6158
if: startsWith(github.ref, 'refs/tags/')
6259
runs-on: ubuntu-latest
6360

6461
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: |
7673
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

Comments
 (0)