Skip to content

Commit fa11c84

Browse files
Update workflows to include matrix testing
1 parent 9f4b74f commit fa11c84

6 files changed

Lines changed: 76 additions & 53 deletions

File tree

.github/workflows/publish.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Publish Python Package
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
python-version: ['3.10', '3.11', '3.12', '3.13']
15+
16+
steps:
17+
- uses: actions/checkout@master
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Test
25+
run: make test
26+
27+
publish:
28+
needs: [test]
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- uses: actions/checkout@master
33+
34+
- name: Set up Python 3.10
35+
uses: actions/setup-python@v3
36+
with:
37+
python-version: '3.10'
38+
39+
- name: Package
40+
run: VERSION="${GITHUB_REF#refs/tags/}" make package
41+
42+
- name: Publish Package to PyPI
43+
uses: pypa/gh-action-pypi-publish@release/v1
44+
with:
45+
user: __token__
46+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-make-package.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/python-publish.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Python Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
python-version: ['3.10', '3.11', '3.12', '3.13']
18+
19+
steps:
20+
- uses: actions/checkout@master
21+
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v3
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Test
28+
run: make test

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test: clean dependencies
1515
dependencies:
1616
python3 -m pip install -r requirements.txt
1717

18-
package: test
18+
package:
1919
python3 -m pip install build \
2020
&& echo "__version__=\"${VERSION}\"" >> "$(VERSION_FILE)" \
2121
&& python3 -m build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# SmartyStreets Python SDK
44

5-
The official client libraries for accessing SmartyStreets APIs from Python 2.7 and 3.5
5+
The official client libraries for accessing SmartyStreets APIs from Python 3.10 and later.
66

77
You may have noticed this page is curiously sparse. Don't panic, there's [documentation](https://smartystreets.com/docs/sdk/python) and [examples](examples).
88

0 commit comments

Comments
 (0)