Skip to content

Fix code-blocks in the docs (#416) #271

Fix code-blocks in the docs (#416)

Fix code-blocks in the docs (#416) #271

Workflow file for this run

name: tests
on:
push:
branches:
- master
pull_request:
jobs:
pep8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Python setup
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install tox and flake8
run: pip install tox flake8
- name: Check syntax compliance
run: tox -e pep8
django:
runs-on: ubuntu-latest
strategy:
matrix:
django: ["3.2", "4.0", "4.1", "4.2", "5.0"]
steps:
- uses: actions/checkout@v2
- name: Python setup
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install tox and django
run: pip install tox "django==${{ matrix.django }}"
- name: Run unit tests
run: tox -e py3.11-django${{ matrix.django }}
javascript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- run: npm test