-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (43 loc) · 1.31 KB
/
test_web_server.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
48
49
name: Web Server Tests
on:
push:
paths:
- 'webserver/pkgpkr/**'
- '.github/workflows/test_web_server.yml'
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
working-directory: webserver/pkgpkr
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
sudo apt-get update
sudo apt-get install chromium-chromedriver google-chrome-stable
sudo apt-get install xvfb -y
- name: Run Tests
env:
MONTH: 120
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_DATABASE: ${{ secrets.DB_DATABASE }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
SELENIUM_TEST: ${{ secrets.SELENIUM_TEST }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
working-directory: webserver/pkgpkr
run: |
python manage.py collectstatic
python manage.py test