Skip to content

Commit

Permalink
Change the local build strategy
Browse files Browse the repository at this point in the history
Signed-off-by: Artyom Vancyan <[email protected]>
  • Loading branch information
ArtyomVancyan committed May 31, 2023
1 parent ec424ca commit f86acd8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade pip
python -m pip install -e .
sh build.sh
pip install tox tox-gh-actions
- name: Run tests using tox
run: tox -e ${{ matrix.env }}
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# last version of `build` supporting Python 3.6
pip install build==0.9.0

# build the wheel and install it
WHEEL_NAME=$(python -m build | grep -Po "django_mermaid-.*\.whl" | tail -n 1)
pip install dist/$WHEEL_NAME
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ deps =
django21: django<2.2
django11: django<2.0
-r{toxinidir}/tests/requirements.txt
allowlist_externals = sh
commands =
pip install -e .
sh build.sh
pytest

0 comments on commit f86acd8

Please sign in to comment.