Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Integration Tests

# Run integration tests on PRs to main (typically from develop)
# These tests make live API calls to Scryfall to verify real-world functionality

on:
pull_request:
branches: [main]
workflow_dispatch: # Allow manual triggers

jobs:
integration-test:
runs-on: ubuntu-latest
# Only run on PRs from develop branch, or manual dispatch
if: github.head_ref == 'develop' || github.event_name == 'workflow_dispatch'

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .

- name: Run integration tests
run: |
python tests/integration/integration_test.py
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 4 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
[pytest]
testpaths = tests
pythonpath = .
# Exclude integration tests from normal runs (they make live API calls)
norecursedirs = tests/integration
markers =
integration: marks tests as integration tests (live API calls, deselect with '-m "not integration"')
Loading