Skip to content

feat: add per-endpoint rate limiting (#156) #343

feat: add per-endpoint rate limiting (#156)

feat: add per-endpoint rate limiting (#156) #343

Workflow file for this run

name: Python Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Check formatting with black
run: |
black --check scrython tests
- name: Lint with ruff
run: |
ruff check scrython tests
- name: Type check with mypy
run: |
mypy scrython
- name: Run tests with pytest
run: |
pytest --cov=scrython --cov-report=term-missing --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: matrix.python-version == '3.11'
with:
files: ./coverage.xml
fail_ci_if_error: false