Refactor NLU YAML Naming Convention and Enhance Documentation #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a CI workflow for validating pull requests by running tests. | |
# It triggers on PRs to the main branch, sets up a Python environment, | |
# installs dependencies with Poetry, and runs tests using pytest. | |
# Test results are uploaded as artifacts for review. | |
# This ensures that all code merged into main passes necessary quality checks. | |
name: PR Validation CI | |
on: | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build | |
pip install poetry | |
poetry install | |
- name: Test with pytest | |
run: poetry run pytest . --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml | |
- name: Upload pytest test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pytest-results-${{ matrix.python-version }} | |
path: junit/test-results-${{ matrix.python-version }}.xml | |
if: ${{ always() }} |