Skip to content

tests: remove unused Tuple to make linter happy #19

tests: remove unused Tuple to make linter happy

tests: remove unused Tuple to make linter happy #19

Workflow file for this run

name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
STABLE_PYTHON_VERSION: '3.11'
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
jobs:
run:
name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Ensure latest pip
run: python -m pip install --upgrade pip
- name: Ensure latest hatch
run: python -m pip install --upgrade hatch
- name: Install ourself
run: |
pip install -e .
- if: ${{ !startsWith(matrix.python-version, 'pypy') }}
name: Lint
run: hatch run lint:style
- name: Run tests
run: hatch test --python ${{ matrix.python-version }} --randomize --parallel --retries 5 --retry-delay 3