This repository was archived by the owner on Sep 4, 2025. It is now read-only.
SentryBOT V5 disorganized (my workspace) Merge #1
This file contains hidden or 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
name: Python Unittest on PR | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Run unittests | |
run: | | |
python -m unittest discover -s tests -p 'test_*.py' | |
permissions: | |
pull-requests: write | |
contents: read |