Skip to content

Fix test for wagtail6.1 #47

Fix test for wagtail6.1

Fix test for wagtail6.1 #47

Workflow file for this run

name: Run tests
on:
- push
- workflow_call
jobs:
linter:
name: Check codestyle
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 flake8-isort flake8-black
flake8 external_link
flake8 test_project/test_app/tests.py
flake8 test_project/test_app/models.py
tests:
name: Run all tests
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.8", "3.11", "3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Run tests
run: |
tox run