Skip to content

Commit 43afa29

Browse files
committed
Allow async unsafe when running tests
1 parent badaf8b commit 43afa29

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Django CI
1+
name: Test django-admin-sortable2
22

33
on:
44
push:
@@ -11,20 +11,19 @@ jobs:
1111

1212
runs-on: ubuntu-latest
1313
strategy:
14-
max-parallel: 4
1514
matrix:
1615
python-version: ["3.8", "3.9", "3.10"]
1716
Django-version: ["4.0"]
1817
node-version: ["16.x"]
1918

2019
steps:
21-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2221
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v3
2423
with:
2524
node-version: ${{ matrix.node-version }}
2625
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v3
2827
with:
2928
python-version: ${{ matrix.python-version }}
3029
- name: Install Dependencies

testapp/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
import os
12
import pytest
23

4+
os.environ.setdefault('DJANGO_ALLOW_ASYNC_UNSAFE', 'true')
5+
36

47
@pytest.fixture(scope='function')
58
def django_db_setup(django_db_blocker):

0 commit comments

Comments
 (0)