update github flows file #38
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: Pytest | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
build: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install ffmpeg | |
run: sudo apt-get update && sudo apt-get install -y ffmpeg | |
- name: Install Poetry and dependencies | |
run: | | |
pip install poetry | |
poetry install --with api --with dev | |
- name: Run tests | |
run: poetry run pytest |