Add CI #26
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: Lint | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
lint: | |
name: Run Linting | |
environment: LINT-CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Set up environment variables | |
env: | |
NETFLIX_LOGIN: ${{ secrets.NETFLIX_LOGIN }} | |
NETFLIX_PASSWORD: ${{ secrets.NETFLIX_PASSWORD }} | |
- name: Set up environment variables and start services | |
env: | |
NETFLIX_LOGIN: ${{ secrets.NETFLIX_LOGIN }} | |
NETFLIX_PASSWORD: ${{ secrets.NETFLIX_PASSWORD }} | |
run: | | |
docker compose build --build-arg NETFLIX_LOGIN=$NETFLIX_LOGIN | |
make up | |
- name: Wait for app service to be ready | |
run: sleep 10 | |
- name: Docker container log | |
run: docker compose logs | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r app/requirements.txt | |
- name: Run linting | |
run: | | |
make lint |