-
Notifications
You must be signed in to change notification settings - Fork 54
35 lines (32 loc) · 978 Bytes
/
ci.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
name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
CI_TEST: true
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Set up chrome driver
uses: nanasess/setup-chromedriver@master
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install node dependencies
run: |
# Install node dependencies
npm install
# Generate assets
./node_modules/.bin/webpack
- name: Test with pytest
run: |
export CHROME_DRIVER_PATH=/usr/local/bin/chromedriver
nohup python manage.py runserver &
chmod +x wait-for-it.sh
./wait-for-it.sh -h localhost -p 8000 -t 10
pytest