Files
viewflow/.github/workflows/django.yml
Mikhail Podgurskiy afd5f6f3cc Fix ci
2025-01-17 14:42:56 +05:00

36 lines
907 B
YAML

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