Skip to content

Add CI

Add CI #24

Workflow file for this run

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 and start services
run: |
echo "NETFLIX_LOGIN=${{ secrets.NETFLIX_LOGIN }}" >> .env
echo "NETFLIX_PASSWORD=${{ secrets.NETFLIX_PASSWORD }}" >> .env
echo "EMAIL_IMAP=${{ secrets.EMAIL_IMAP }}" >> .env
echo "EMAIL_LOGIN=${{ secrets.EMAIL_LOGIN }}" >> .env
echo "EMAIL_PASSWORD=${{ secrets.EMAIL_PASSWORD }}" >> .env
echo "NETFLIX_EMAIL_SENDER=${{ secrets.NETFLIX_EMAIL_SENDER }}" >> .env
make build
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