Skip to content

Add proactive rate limiting to prevent exceeding Flickr's query limits #9

Add proactive rate limiting to prevent exceeding Flickr's query limits

Add proactive rate limiting to prevent exceeding Flickr's query limits #9

Workflow file for this run

name: CI
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --dev
- name: Run flake8
run: uv run flake8 flickr_api/
- name: Run ruff check
run: uv run ruff check flickr_api/
- name: Run ruff format check
run: uv run ruff format --check flickr_api/
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --dev
- name: Run tests
run: uv run pytest