File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 51
51
- name : Install dependencies
52
52
run : |
53
53
pip install --upgrade pip
54
- python setup.py sdist bdist_wheel
55
- pip install dist/django_forbid-*.whl
54
+ sh build.sh
56
55
pip install tox tox-gh-actions
57
56
- name : Run tests using tox
58
57
run : tox -e ${{ matrix.env }}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # last version of `build` supporting Python 3.6
4
+ pip install build==0.9.0
5
+
6
+ # build the wheel and install it
7
+ WHEEL_NAME=$( python -m build | grep -Po " django_forbid-.*\.whl" | tail -n 1)
8
+ pip install dist/$WHEEL_NAME
Original file line number Diff line number Diff line change 15
15
django21: django ==2.1
16
16
-r{toxinidir}/tests/requirements.txt
17
17
commands =
18
- python setup.py sdist bdist_wheel
19
- pip install dist/django_forbid-*.whl
18
+ sh build.sh
20
19
pytest
You can’t perform that action at this time.
0 commit comments