-
-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (36 loc) · 858 Bytes
/
tests.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
name: Tests
on:
push:
branches:
- develop
pull_request: ~
jobs:
run-tests:
runs-on: ubuntu-latest
services:
dizquetv-docker:
image: vexorian/dizquetv
ports:
- 8001:8000
steps:
- name: Sleep for 30 seconds
uses: jakejarvis/wait-action@master
with:
time: '30s'
- name: Test Docker is running
run: "curl http://localhost:8001/api/version"
- name: Checkout code
uses: actions/checkout@v2
- name: Make envfile
uses: SpicyPizza/create-envfile@v1
with:
envkey_D_URL: http://localhost:8001
file_name: .env
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Python dependencies
run: make install
- name: Test with pytest
run: make test