Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a GitHub Action to run tox #207

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: tox
on: [push, pull_request]
jobs:
tox-jobs:
strategy:
fail-fast: false
matrix:
job: [docs]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
# cache: 'pip' # Only use if there are requirements.txt files
- run: pip install --upgrade pip
- run: pip install setuptools tox
- run: pip install --editable .
- run: tox -e ${{ matrix.job }}

tox:
strategy:
fail-fast: false
# max-parallel: 4
matrix: # https://docs.djangoproject.com/en/stable/faq/install/#what-python-version-can-i-use-with-django
os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.10']
django-version: ['3.2', '4.2', '5.0']
elasticsearch-version: ['7.17.9'] # https://pypi.org/project/elasticsearch7
exclude:
- python-version: '3.8'
django-version: '5.0'
- python-version: '3.9'
django-version: '5.0'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# cache: 'pip' # Only use if there are requirements.txt files
- run: python3 --version && python --version
- run: pip install --upgrade pip
# - run: pip install django==${{ matrix.django-version }} elasticsearch==${{ matrix.elasticsearch-version }} tox
- run: pip install tox
- run: tox -e "py${{ matrix.python-version }}-django${{ matrix.django-version }}-es7.x"
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_version(package):
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down Expand Up @@ -165,7 +165,7 @@ def get_version(package):

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'http://docs.python.org/': None,
'python': ('https://docs.python.org/3', None),
'django': ('https://django.readthedocs.io/en/latest/', None),
'haystack': ('https://django-haystack.readthedocs.io/en/latest/', None)
}
Expand Down
Loading
Loading