Skip to content

Commit

Permalink
Add a CI job to check for missed docs changes (airtai#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl authored Feb 7, 2024
1 parent 66f6fe2 commit e4f7ec3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,26 @@ jobs:
shell: bash
run: semgrep scan --config auto --error

check-docs-changes:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pip install -e ".[dev]"
- name: Run build docs
run: bash scripts/build-docs.sh
- name: Check for changes
id: git-diff
run: git diff --exit-code

test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
Expand Down Expand Up @@ -458,6 +478,7 @@ jobs:

needs:
- static_analysis
- check-docs-changes
- coverage-combine
- test-macos-latest
- test-windows-latest
Expand Down

0 comments on commit e4f7ec3

Please sign in to comment.