Skip to content

Improve performance by adding reusable session #342

Improve performance by adding reusable session

Improve performance by adding reusable session #342

Workflow file for this run

name: Tests
on: [ push, pull_request ]
jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 4
matrix:
# https://help.github.com/articles/virtual-environments-for-github-actions
platform:
- ubuntu-20.04
- macos-latest
- windows-latest
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
exclude:
- platform: macos-latest
python-version: '3.6'
- platform: macos-latest
python-version: '3.7'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade setuptools pip wheel pytest mock requests
- name: Test with pytest
run: pytest -rp