mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Merge pull request #346 from pauloxnet/feature/actions-update
Update github actions and fix tests
This commit is contained in:
commit
befe7f1e0d
6 changed files with 17 additions and 16 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
|
@ -11,12 +11,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.8
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ jobs:
|
|||
echo "::set-output name=dir::$(pip cache dir)"
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.pip-cache.outputs.dir }}
|
||||
key: release-${{ hashFiles('**/setup.py') }}
|
||||
|
|
@ -35,8 +35,8 @@ jobs:
|
|||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install -U pip
|
||||
python -m pip install -U setuptools twine wheel
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade setuptools twine wheel
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
|
|
|
|||
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
|
|
@ -16,20 +16,20 @@ jobs:
|
|||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9']
|
||||
|
||||
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:
|
||||
|
|
@ -40,14 +40,14 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade tox tox-gh-actions
|
||||
python -m pip install --upgrade "tox<4" "tox-gh-actions<3"
|
||||
|
||||
- name: Tox tests
|
||||
run: |
|
||||
tox -v
|
||||
tox --verbose
|
||||
|
||||
- name: Upload coverage
|
||||
uses: codecov/codecov-action@v1
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
name: Python ${{ matrix.python-version }}
|
||||
fail_ci_if_error: true
|
||||
|
|
|
|||
2
LICENSE
2
LICENSE
|
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2012-2022, Jannis Leidel and other contributors.
|
||||
Copyright (c) 2012-2023, Jannis Leidel and other contributors.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import configurations
|
|||
|
||||
# -- Project information -----------------------------------------------------
|
||||
project = 'django-configurations'
|
||||
copyright = '2012-2022, Jannis Leidel and other contributors'
|
||||
copyright = '2012-2023, Jannis Leidel and other contributors'
|
||||
author = 'Jannis Leidel and other contributors'
|
||||
|
||||
release = configurations.__version__
|
||||
|
|
|
|||
|
|
@ -375,6 +375,7 @@ class ValueTests(TestCase):
|
|||
with env(DATABASE_URL='sqlite://'):
|
||||
self.assertEqual(value.setup('DATABASE_URL'), {
|
||||
'default': {
|
||||
'CONN_HEALTH_CHECKS': False,
|
||||
'CONN_MAX_AGE': 0,
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'HOST': '',
|
||||
|
|
|
|||
4
tox.ini
4
tox.ini
|
|
@ -6,8 +6,8 @@ envlist =
|
|||
py37-checkqa
|
||||
docs
|
||||
py{37,py37}-dj{32}
|
||||
py{38,py38,39,py39,310}-dj{32,40,41,main}
|
||||
py{311}-dj{41,main}
|
||||
py{38,py38,39,py39,310}-dj{32,40,41}
|
||||
py{311}-dj{41}
|
||||
|
||||
[gh-actions]
|
||||
python =
|
||||
|
|
|
|||
Loading…
Reference in a new issue