Skip to content

Commit 6a3e75a

Browse files
committed
try fix CI and coverage
1 parent 9384bca commit 6a3e75a

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

.codecov.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# https://github.com/codecov/codecov-python/issues/136
2+
coverage:
3+
fixes:
4+
- "__init__.py::django_enum/__init__.py"
5+
- "utils.py::django_enum/utils.py"
6+
- "forms.py::django_enum/forms.py"
7+
- "urls.py::django_enum/urls.py"

.github/workflows/test.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
timeout-minutes: 60
121121
- name: Run Unit Tests
122122
run: |
123+
poetry run ./manage.py makemigrations
123124
just test ./tests/verify_environment.py
124125
just test-all
125126
- name: Store coverage files
@@ -179,6 +180,7 @@ jobs:
179180
timeout-minutes: 60
180181
- name: Run Unit Tests
181182
run: |
183+
poetry run ./manage.py makemigrations
182184
just test ./tests/verify_environment.py
183185
just test-all
184186
- name: Store coverage files
@@ -276,6 +278,7 @@ jobs:
276278
run: just pin-dependency mysqlclient==${{ matrix.mysqlclient-version }}
277279
- name: Run Unit Tests
278280
run: |
281+
poetry run ./manage.py makemigrations
279282
just test ./tests/verify_environment.py
280283
just test-all
281284
- name: Store coverage files
@@ -377,6 +380,7 @@ jobs:
377380
run: just pin-dependency mysqlclient==${{ matrix.mysqlclient-version }}
378381
- name: Run Unit Tests
379382
run: |
383+
poetry run ./manage.py makemigrations
380384
just test ./tests/verify_environment.py
381385
just test-all
382386
- name: Store coverage files
@@ -477,18 +481,9 @@ jobs:
477481
just init ${{ steps.sp.outputs.python-path }}
478482
just install-oracle
479483
just pin-dependency Django~=${{ matrix.django-version }}.0
480-
- name: Install Dependencies
481-
run: |
482-
just init ${{ steps.sp.outputs.python-path }}
483-
just install-oracle
484-
poetry config virtualenvs.in-project true
485-
poetry run pip install --upgrade pip
486-
sed -i 's/^python = .*/python = "^${{ matrix.python-version }}"/' pyproject.toml
487-
poetry add django@^${{ matrix.django-version }}
488-
poetry install -E all --with oracle
489-
poetry run ./manage.py makemigrations
490484
- name: Run Full Unit Tests
491485
run: |
486+
poetry run ./manage.py makemigrations
492487
just test ./tests/verify_environment.py
493488
just test
494489

justfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,10 @@ test-all:
152152
poetry run ./manage.py makemigrations
153153
poetry run pytest --cov-append
154154
poetry install -E properties
155-
poetry run ./manage.py makemigrations
156155
poetry run pytest --cov-append
157156
poetry install -E djangorestframework
158-
poetry run ./manage.py makemigrations
159157
poetry run pytest --cov-append
160158
poetry install -E filters
161-
poetry run ./manage.py makemigrations
162159
poetry run pytest --cov-append
163160

164161
# run tests

tests/verify_environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from django import VERSION
44
from django.db import connection
55
import typing as t
6-
from django.test import TestCase
6+
from django.test import SimpleTestCase
77

88

99
def get_postgresql_version() -> t.Tuple[int, ...]:

0 commit comments

Comments
 (0)