-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (38 loc) · 1.18 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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