Skip to content

Commit

Permalink
Codecov_fixes (#562)
Browse files Browse the repository at this point in the history
* Trying to get codecov working again

* Use poetry run

* Defining testing extras

* Fixing codecov output files

* Try installing the right Django version and show relevant upload tags

* Cover only project files
  • Loading branch information
Koed00 authored May 23, 2021
1 parent 71d4b72 commit 981ba0c
Show file tree
Hide file tree
Showing 4 changed files with 477 additions and 77 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,28 @@ jobs:
options: --entrypoint redis-server
steps:
- uses: actions/checkout@v2
- uses: codecov/codecov-action@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies with Django ${{ matrix.django }}
run: |
python -m pip install --upgrade pip
pip install -q django==${{ matrix.django }}
pip install -r requirements.txt
pip install pytest --upgrade
pip install pytest-django codecov sphinx poetry
poetry install
pip install poetry
poetry add "django==${{ matrix.django }}"
poetry install -E testing
- name: Run Tests
run: |
coverage run --source=django_q -m py.test
poetry run pytest --cov=./django_q --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v1
env:
PYTHON: ${{ matrix.python-version }}
DJANGO: ${{ matrix.django }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: PYTHON, DJANGO
fail_ci_if_error: true
- name: Build docs
run: |
sphinx-build -b html -d docs/_build/doctrees -nW docs docs/_build/html
poetry run sphinx-build -b html -d docs/_build/doctrees -nW docs docs/_build/html
Loading

0 comments on commit 981ba0c

Please sign in to comment.