-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (45 loc) · 1.3 KB
/
site.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
50
51
52
53
name: Site tests
on:
push:
branches:
- master
pull_request: {}
jobs:
test:
name: Site tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install imagemagick libcurl4-openssl-dev libssl-dev
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install requirements
run: |
python -m pip install --upgrade pip setuptools wheel
pip install flake8 coverage
pip install -r requirements.txt
- name: Test
working-directory: ./prologin
env:
DJANGO_SETTINGS_MODULE: prologin.settings.test
run: |
python3 -m coverage run --source='.' manage.py test -v2
python3 -m coverage xml
# Re-enable when site can be linted properly.
#
# - name: Lint with flake8
# working-directory: ./tools/generator
# run: |
# flake8 . --count --show-source --statistics
- name: Coverage upload to Codecov
uses: codecov/codecov-action@v1
with:
file: ./prologin/coverage.xml
name: site
fail_ci_if_error: true