VenkateshRoshan
test_codes updated
20953f9
name: Run Tests
on:
push:
branches:
- main # Trigger the workflow on push to the main branch
pull_request:
branches:
- main # Trigger the workflow on pull requests targeting the main branch
jobs:
test:
runs-on: ubuntu-latest # Run the job on the latest Ubuntu environment
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # Specify the Python version to use
- name: Install ffmpeg
run: |
sudo apt-get update
sudo apt-get install ffmpeg -y # Install ffmpeg
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Install dependencies from requirements.txt
- name: Run tests
run: |
pytest tests/test_module.py # Run tests with pytest
- name: Upload Test Results
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: test-results # Path to upload test results