-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 926 Bytes
/
django.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
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