From 5440e010efe8efde41cc96d4eed28adcbae3fe61 Mon Sep 17 00:00:00 2001 From: Martin Kersner Date: Tue, 30 Jun 2026 13:39:16 +0900 Subject: [PATCH] ci: don't run live-prod tests in CI; run pytest locally only Tests hit live production endpoints and depend on prod data availability (DEX 404s, premium 'no data found'). Drop the pytest step from the workflow so CI runs only black + flake8 across the matrix. Tests stay runnable locally via: DATAMAXI_API_KEY=... python -m pytest tests/ Closes #95 --- .github/workflows/python-package.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a9872a3..d83a333 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -31,9 +31,6 @@ jobs: - name: Run flake8 to check specific rules not covered by black run: | flake8 . --statistics - - name: Test with pytest - if: matrix.python-version == '3.14' - env: - DATAMAXI_API_KEY: ${{ secrets.DATAMAXI_API_KEY }} - run: | - python -m pytest tests/ + # Tests hit live production 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/`.