Skip to content

Commit 5686bc5

Browse files
authored
Merge pull request #9 from surface-security/upgrade-deps
misc: pin django, upgrade workflows and support 3.11
2 parents a1ae34e + a5509ea commit 5686bc5

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
deploy:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Set up Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: '3.x'
1919
- name: Install dependencies

.github/workflows/publish_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
deploy:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Set up Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: '3.x'
1919
- name: Install dependencies

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
style:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
17-
- name: Set up Python 3.7
18-
uses: actions/setup-python@v2
16+
- uses: actions/checkout@v3
17+
- name: Set up Python 3.11
18+
uses: actions/setup-python@v4
1919
with:
20-
python-version: 3.7
20+
python-version: 3.11
2121
- name: Install tox
2222
run: pip install tox
2323
- name: Style check
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
strategy:
2929
matrix:
30-
python-version: [3.7, 3.8, 3.9]
30+
python-version: [3.7, 3.8, 3.9, 3.11]
3131
database: [sqlite, mysql, postgresql]
3232

3333
services:
@@ -51,9 +51,9 @@ jobs:
5151
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
5252

5353
steps:
54-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v3
5555
- name: Set up Python ${{ matrix.python-version }}
56-
uses: actions/setup-python@v2
56+
uses: actions/setup-python@v4
5757
with:
5858
python-version: ${{ matrix.python-version }}
5959

@@ -64,7 +64,7 @@ jobs:
6464

6565
- name: coverage xml
6666
run: .tox/py-${{ matrix.database }}/bin/coverage xml
67-
- uses: codecov/codecov-action@v2
67+
- uses: codecov/codecov-action@v3
6868
with:
6969
token: ${{ secrets.CODECOV_TOKEN }}
7070
fail_ci_if_error: true

setup.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ classifiers =
1515
Intended Audience :: Developers
1616
Operating System :: OS Independent
1717
Programming Language :: Python
18-
Programming Language :: Python :: 3.2
19-
Programming Language :: Python :: 3.3
2018
Programming Language :: Python :: 3.7
2119
Programming Language :: Python :: 3.9
20+
Programming Language :: Python :: 3.11
2221
Environment :: Web Environment
2322
Topic :: Software Development
2423

@@ -27,7 +26,7 @@ zip_safe = False
2726
include_package_data = True
2827
packages = find:
2928
install_requires =
30-
Django >= 3.0
29+
Django >= 3.0, < 4.0
3130
python_requires = >=3.7
3231

3332
[options.packages.find]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
envlist =
33
flake8
4-
py{37,38,39}-dj{22,30,32}-{sqlite,postgresql,mysql}
4+
py{37,38,39,311}-dj{22,30,32}-{sqlite,postgresql,mysql}
55

66
[testenv]
77
deps =
@@ -30,6 +30,6 @@ skip_install = true
3030
basepython = python3
3131
commands = make style_check
3232
deps =
33-
black>=22.0
33+
black>=22.12
3434
flake8
3535
skip_install = true

0 commit comments

Comments
 (0)