@@ -46,16 +46,14 @@ jobs:
4646 - run : python -m pip install -r lint-requirements.txt
4747 - run : ${{ matrix.lint-command }}
4848
49-
5049 dist :
5150 runs-on : ubuntu-latest
5251 steps :
53- - name : Install gettext
54- run : sudo apt install gettext -y
55- - uses : actions/setup-python@v3
56- - run : python -m pip install --upgrade pip setuptools wheel twine readme-renderer
5752 - uses : actions/checkout@v3
58- - run : python setup.py sdist bdist_wheel
53+ - uses : actions/setup-python@v3
54+ - run : sudo apt install gettext -y
55+ - run : python -m pip install --upgrade pip build wheel twine readme-renderer
56+ - run : python -m build --sdist --wheel
5957 - run : python -m twine check dist/*
6058 - uses : actions/upload-artifact@v3
6159 with :
@@ -73,22 +71,21 @@ jobs:
7371 - " 3.9"
7472 - " 3.10"
7573 django-version :
76- - " 3.2a "
77- - " 4.0a "
74+ - " 3.2 "
75+ - " 4.0 "
7876 extra :
79- - " "
80- - " progressbar"
77+ - " test "
78+ - " test, progressbar"
8179 steps :
8280 - name : Set up Python ${{ matrix.python-version }}
8381 uses : actions/setup-python@v3
8482 with :
8583 python-version : ${{ matrix.python-version }}
8684 - run : sudo apt install gettext -y
8785 - uses : actions/checkout@v3
88- - run : python -m pip install --upgrade pip setuptools codecov wheel
89- - run : python -m pip install .[${{ matrix.extra }}]
86+ - run : python -m pip install --upgrade pip codecov
87+ - run : python -m pip install -e .[${{ matrix.extra }}]
9088 if : ${{ matrix.extra }}
91- - run : python -m pip install django~=${{ matrix.django-version }}
92- - name : Test with pytest
93- run : python setup.py test
89+ - run : python -m pip install django~=${{ matrix.django-version }}a
90+ - run : python -m pytest
9491 - run : codecov
0 commit comments