Skip to content

Commit

Permalink
SWI-3611 Add tests for python 3.11 (#161)
Browse files Browse the repository at this point in the history
* Add tests for python 3.11

* update pytest dependency

* Update requirements_dev.txt

* Bump `py` dependency

* Upgrade setup tools

* Exclude Python3.11 on Windows 2019

There is a bug with the LXML library that requires us to install the binary directly w/o pip. IMO not worth working around when this version of the SDK is scheduled to be deprecated.

* Windows 2022 and python3.11 also broken due to lxml

* Update CODEOWNERS
  • Loading branch information
ajrice6713 authored Sep 26, 2023
1 parent 7ce2d4b commit aabf768
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Global rule:
* @Bandwidth/dx
* @Bandwidth/band-swi @Bandwidth/band-swi-github-repo-admin
2 changes: 1 addition & 1 deletion .github/workflows/test-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
strategy:
matrix:
os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
python-version: [3.7, 3.8, 3.9, '3.10']
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ jobs:
strategy:
matrix:
os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
python-version: [3.7, 3.8, 3.9, '3.10']
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
exclude:
- os: windows-2019
python-version: '3.11'
- os: windows-2022
python-version: '3.11'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -72,6 +77,7 @@ jobs:

- name: Install Packages
run: |
pip install --upgrade setuptools
pip install -r requirements.txt
pip install -r test-requirements.txt
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

[![Test](https://github.com/Bandwidth/python-sdk/actions/workflows/test.yaml/badge.svg)](https://github.com/Bandwidth/python-sdk/actions/workflows/test.yaml)

| **OS** | **Python** |
|:---:|:---:|
| Windows 2016 | 3.7, 3.8, 3.9, 3.10 |
| Windows 2019 | 3.7, 3.8, 3.9, 3.10 |
| Ubuntu 20.04 | 3.7, 3.8, 3.9, 3.10 |
| Ubuntu 22.04 | 3.7, 3.8, 3.9, 3.10 |
| **OS** | **Python** |
|:---:|:-------------------------:|
| Windows 2016 | 3.7, 3.8, 3.9, 3.10, 3.11 |
| Windows 2019 | 3.7, 3.8, 3.9, 3.10, 3.11 |
| Ubuntu 20.04 | 3.7, 3.8, 3.9, 3.10, 3.11 |
| Ubuntu 22.04 | 3.7, 3.8, 3.9, 3.10, 3.11 |


## Getting Started
Expand Down
4 changes: 2 additions & 2 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ lxml==4.9.1
msgpack==1.0.2
packaging==21.0
pluggy==1.0.0
py==1.10.0
py==1.11.0
pyparsing==2.4.7
pytest==6.2.5
pytest~=7.1.3
python-dateutil==2.8.1
requests==2.31.0
six==1.16.0
Expand Down

0 comments on commit aabf768

Please sign in to comment.