Skip to content

Commit

Permalink
Added python testing workflow
Browse files Browse the repository at this point in the history
Signed-off-by: ViNN280801 <vladislav_semykin01@mail.ru>
  • Loading branch information
ViNN280801 committed Nov 7, 2024
1 parent fffe27e commit a4699d0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/pytesting_ubuntu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Run Python Tests

on:
push:
branches-ignore: main
paths:
- "**/*.py"
pull_request:
branches: main
paths:
- "**/*.py"
workflow_dispatch:

jobs:
run_python_tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Python tests
run: |
python ui/run_tests.py
- name: Notify author on success
if: success() && github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '@ViNN280801 All Python tests have passed successfully. Please review the changes and proceed with the next steps if everything looks good.'
})

0 comments on commit a4699d0

Please sign in to comment.