-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test py 37,38,39 (#1) dj 22 wt 211,212,213 * Fixes the template include issue with the lock/unlock menu item * Pin the upper bound of the supported Wagtail version to 2.13 and Django to 2.2 * Add some initial documentation for development setup
- Loading branch information
1 parent
d4e1257
commit 33f0244
Showing
13 changed files
with
155 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
|
||
jobs: | ||
|
||
test-python: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: ["3.7", "3.8", "3.9"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install NPM and dependencies | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12.x' | ||
- name: Build client | ||
run: | | ||
npm install --prefix ./longclaw/client | ||
npm run build --prefix ./longclaw/client | ||
- name: Upload client | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: client | ||
path: ./longclaw/core/static/core/js | ||
|
||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install tox tox-gh-actions | ||
- name: Download client | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: client | ||
path: ./longclaw/core/static/core/js | ||
- name: Test with tox | ||
run: tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,4 +53,7 @@ docs/_build | |
|
||
webpack-stats.json | ||
*bundle.js* | ||
.eggs/ | ||
.eggs/ | ||
|
||
# local virtual environment | ||
/venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,40 @@ | ||
[tox] | ||
skipsdist = True | ||
usedevelop = True | ||
skip_missing_interpreters = True | ||
|
||
envlist = | ||
{py35,py36,py37}-django-225 | ||
py{37,38,39}-dj{22}-wt{211,212,213} | ||
|
||
[gh-actions] | ||
python = | ||
3.7: py37 | ||
3.8: py38 | ||
3.9: py39 | ||
|
||
[testenv] | ||
setenv = | ||
PYTHONPATH = {toxinidir}:{toxinidir}/longclaw | ||
commands = coverage run --source longclaw runtests.py | ||
coverage xml --omit=*/apps.py,*/migrations/*,*/__init__.py,*/gateways/braintree.py,*/gateways/stripe.py,*/bin/longclaw.py | ||
|
||
deps = | ||
django-225: Django==2.2.5 | ||
-r{toxinidir}/requirements_dev.txt | ||
coverage | ||
django-extensions | ||
django-polymorphic | ||
django-ipware | ||
mock | ||
wagtail-factories | ||
|
||
dj22: Django>=2.2,<3.0 | ||
dj30: Django>=3.0,<3.1 | ||
wt211: wagtail>=2.11,<2.12 | ||
wt212: wagtail>=2.12,<2.13 | ||
wt213: wagtail>=2.13,<2.14 | ||
|
||
install_command = pip install -U {opts} {packages} | ||
|
||
commands = | ||
coverage run --source longclaw runtests.py | ||
coverage xml --omit=*/apps.py,*/migrations/*,*/__init__.py,*/gateways/braintree.py,*/gateways/stripe.py,*/bin/longclaw.py | ||
|
||
basepython = | ||
py37: python3.7 | ||
py36: python3.6 | ||
py35: python3.5 |