coverage.rc -> pyproject.toml #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Django coverage | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: [3.11] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup Poetry | |
uses: Gr1N/setup-poetry@v8 | |
- run: poetry install | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pypoetry/virtualenvs | |
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} | |
- name: Run Tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
run: | | |
cd passport | |
poetry run coverage run manage.py test --settings=passport.test_settings | |
poetry run coverage report | |
poetry run coveralls |