Merge pull request #77 from DominikBalga/main #98
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
name: Project Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
pip install -e '.[test]' | |
sudo apt-get update | |
sudo apt-get install -y ffmpeg | |
- name: Find and run pytest tests | |
run: | | |
test_files=$(find ./tests/ -name "*test*.py") | |
# Run pytest on all found test files | |
python -m pytest $test_files |