Update test-discussion-bot.yaml #2
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
# Test for the Discussion Bot | ||
name: Test-Discussion-Bot | ||
# Trigger on changes of the discussion-bot folder | ||
on: | ||
push | ||
paths: | ||
- discussion-bot | ||
permissions: | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
discussions: write | ||
jobs: | ||
bot-response: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: setup | ||
run: | | ||
pip install markdown | ||
- name: Check out the repository to the runner | ||
uses: actions/checkout@v4 | ||
- name: Test discussion-responder for the prepared discussions | ||
run: | | ||
cd discussion-bot/test | ||
python test.py | ||
- name: Upload Test report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "Discussion-Bot_test-report" | ||
path: ./report.html |