Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Revert "Run integration tests on changed files"
Browse files Browse the repository at this point in the history
This reverts commit 19badcc.
  • Loading branch information
collindutter committed Apr 16, 2024
1 parent 19badcc commit d7cee6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Docs Integration Tests
name: Integration Tests

on:
pull_request:
branches: [ "main", "dev" ]



jobs:
test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -108,19 +106,9 @@ jobs:
VOYAGE_API_KEY: ${{ secrets.INTEG_VOYAGE_API_KEY }}

steps:
- name: Get all changed docs files
id: changed-markdown-files
uses: tj-actions/changed-files@v43
with:
files: |
docs:
- docs/**.md
- name: Checkout actions
uses: actions/checkout@v3
- name: Init environment
uses: ./.github/actions/init-environment
- name: Run integration tests
if: steps.changed-markdown-files.outputs.any_changed == 'true'
run: pytest -v ${{ steps.changed-markdown-files.outputs.all_changed_files }}
env:
DOCS_ALL_CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.docs_all_changed_files }}
run: pytest -v tests/integration
8 changes: 2 additions & 6 deletions tests/integration/test_code_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
import pytest
from utils.code_blocks import get_all_code_blocks, check_py_string

docs_all_changed_files = os.environ.get("DOCS_ALL_CHANGED_FILES", "").splitlines()

all_code_blocks = [
get_all_code_blocks(changed_file) for changed_file in docs_all_changed_files
]
all_code_blocks = [block for sublist in all_code_blocks for block in sublist]
code_path = os.environ.get("INTEG_CODE_PATH", "**/*.md")
all_code_blocks = get_all_code_blocks(code_path)


@pytest.mark.parametrize(
Expand Down

0 comments on commit d7cee6e

Please sign in to comment.