Skip to content

Commit

Permalink
Merge pull request #293 from Rotzbua/update_gh_actions
Browse files Browse the repository at this point in the history
Update gh actions; Add Django 4.1, Python 3.11
  • Loading branch information
giovannicimolin authored Aug 21, 2023
2 parents 17c1c09 + 767e7b8 commit a976616
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
Expand Down
2 changes: 1 addition & 1 deletion knox_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_L10N = True # Deprecated since django 4.0.
USE_TZ = True

STATIC_URL = '/static/'
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],

# What does your project relate to?
Expand Down
9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ envlist =
flake8,
py{36,37,38,39,310}-django32,
py{38,39,310}-django40,
py{38,39,310,311}-django41,

[testenv:flake8]
deps = flake8
Expand All @@ -30,7 +31,8 @@ setenv =
deps =
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
markdown<3.0
django41: Django>=4.1.3,<4.2
markdown>=3.0
isort>=5.0
djangorestframework
freezegun
Expand All @@ -46,5 +48,6 @@ python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39, isort, flake8
3.10: py310
3.9: py39
3.10: py310, isort, flake8
3.11: py311

0 comments on commit a976616

Please sign in to comment.