test against Python 3.10 through 3.14 #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| # Integration tests hit the live sandbox API, so they run on this version | |
| # only -- running them across the whole matrix would trip API rate limits. | |
| LATEST_PYTHON: '3.14' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' # caching pip dependencies | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Run unit tests | |
| run: python -m unittest discover -s tests/unit -t . -v | |
| - name: Run integration tests | |
| if: matrix.python-version == env.LATEST_PYTHON | |
| run: python -m unittest discover -s tests/integration -t . -v |