-
Notifications
You must be signed in to change notification settings - Fork 412
35 lines (33 loc) · 907 Bytes
/
django.yml
File metadata and controls
35 lines (33 loc) · 907 Bytes
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: Viewflow CI
on:
push:
branches: [ main ]
jobs:
build:
name: Viewflow CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/cache@v3
with:
path: .venv
key: ${{ hashFiles('tox.ini') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools==59.8.0
python -m pip install tox
tox --notest
- name: Run Tests
run: |
tox -- coverage run --source='viewflow' ./manage.py test --exclude-tag=selenium --exclude-tag=integration
tox -- coverage lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov