Skip to content

Merge pull request #436 from django-haystack/github-actions-disable-p… #113

Merge pull request #436 from django-haystack/github-actions-disable-p…

Merge pull request #436 from django-haystack/github-actions-disable-p… #113

Workflow file for this run

name: ruff_and_tox
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
ruff: # https://docs.astral.sh/ruff/editor-integrations/#github-actions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: |
python -m pip install --upgrade pip
pip install --user "codespell[toml]" ruff
- run: codespell
- run: ruff check .
env:
RUFF_FORMAT: github
tox:
needs: ruff
strategy:
fail-fast: false
max-parallel: 6
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- run: pip install --upgrade pip
- run: pip install tox
- run: tox -e py