-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (44 loc) · 1.11 KB
/
pull_request.yml
File metadata and controls
46 lines (44 loc) · 1.11 KB
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
name: Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 12
matrix:
app-to-test: [
'tests/test*.py',
'tests/channel',
'tests/channel_manager',
'tests/channel_sync',
'tests/comment',
'tests/common',
'tests/home',
'tests/media',
'tests/moderation',
'tests/search',
'tests/stats',
'tests/user',
]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: "3.8"
architecture: "x64"
- name: Export vars
run: |
cp .env.template .env
sed -e 's/^/export /' -i .env
source .env
sed -e 's/export //' -i .env
- name: Run backend tests
env:
YOUTUBE_API_KEYS: ${{ secrets.YOUTUBE_API_KEYS }}
run: |
pip install pip docker-compose -U
make start-deps
docker ps
make docker-test path=${{ matrix.app-to-test }}