Skip to content

test(ws): assert real data on /liquidation/feed live test (#202) #469

test(ws): assert real data on /liquidation/feed live test (#202)

test(ws): assert real data on /liquidation/feed live test (#202) #469

name: Python package
on:
push:
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE'
- '.gitignore'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Install dependencies
run: uv pip install --system -r requirements/requirements-test.txt
- name: Run black to review standard code format
run: |
# Checks if need to reformat files
black --check --diff .
- name: Run flake8 to check specific rules not covered by black
run: |
flake8 . --statistics
# Offline mocked tests run keyless (no DATAMAXI_API_KEY, no network).
# `-m "not integration"` deselects the live integration lane; the keyed
# smoke lane (test_call.py) skips cleanly when no key is set.
- name: Run offline mocked tests
run: python -m pytest tests/ -m "not integration" -q
# The live integration + smoke lanes hit prod endpoints and depend on prod
# data availability, so they are not run in CI. Run them locally with
# `DATAMAXI_API_KEY=... python -m pytest tests/`.