Merge pull request #82 from software-students-fall2023/JW_Feature #1
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: Web-App CI/CD | |
on: [push, pull_request] | |
jobs: | |
test: | |
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 FFmpeg | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ffmpeg | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pipenv | |
pipenv sync --dev --python $(which python) | |
pipenv shell --fancy --python $(which python) | |
- name: Test with pytest (web-app) | |
run: | | |
cd web-app | |
pipenv run coverage run -m pytest | |
pipenv run coverage report --fail-under=80 |