Update github actions and fix pipeline

This commit is contained in:
Paolo Melchiorre 2023-01-19 18:06:05 +01:00
parent 1f8bac5ba4
commit 352d95b2ab
No known key found for this signature in database
GPG key ID: 5F8222398E1ED035
6 changed files with 17 additions and 16 deletions

View file

@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: 3.8 python-version: 3.8
@ -26,7 +26,7 @@ jobs:
echo "::set-output name=dir::$(pip cache dir)" echo "::set-output name=dir::$(pip cache dir)"
- name: Cache - name: Cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ steps.pip-cache.outputs.dir }} path: ${{ steps.pip-cache.outputs.dir }}
key: release-${{ hashFiles('**/setup.py') }} key: release-${{ hashFiles('**/setup.py') }}
@ -35,8 +35,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install -U pip python -m pip install --upgrade pip
python -m pip install -U setuptools twine wheel python -m pip install --upgrade setuptools twine wheel
- name: Build package - name: Build package
run: | run: |

View file

@ -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'] python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9']
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Get pip cache dir - name: Get pip cache dir
id: pip-cache id: pip-cache
run: | run: |
echo "::set-output name=dir::$(pip cache dir)" echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache - name: Cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ steps.pip-cache.outputs.dir }} path: ${{ steps.pip-cache.outputs.dir }}
key: key:
@ -40,14 +40,14 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip 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 - name: Tox tests
run: | run: |
tox -v tox --verbose
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v1 uses: codecov/codecov-action@v3
with: with:
name: Python ${{ matrix.python-version }} name: Python ${{ matrix.python-version }}
fail_ci_if_error: true fail_ci_if_error: true

View file

@ -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. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, Redistribution and use in source and binary forms, with or without modification,

View file

@ -2,7 +2,7 @@ import configurations
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
project = 'django-configurations' 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' author = 'Jannis Leidel and other contributors'
release = configurations.__version__ release = configurations.__version__

View file

@ -375,6 +375,7 @@ class ValueTests(TestCase):
with env(DATABASE_URL='sqlite://'): with env(DATABASE_URL='sqlite://'):
self.assertEqual(value.setup('DATABASE_URL'), { self.assertEqual(value.setup('DATABASE_URL'), {
'default': { 'default': {
'CONN_HEALTH_CHECKS': False,
'CONN_MAX_AGE': 0, 'CONN_MAX_AGE': 0,
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'HOST': '', 'HOST': '',

View file

@ -6,8 +6,8 @@ envlist =
py37-checkqa py37-checkqa
docs docs
py{37,py37}-dj{32} py{37,py37}-dj{32}
py{38,py38,39,py39,310}-dj{32,40,41,main} py{38,py38,39,py39,310}-dj{32,40,41}
py{311}-dj{41,main} py{311}-dj{41}
[gh-actions] [gh-actions]
python = python =