diff --git a/.github/workflows/ci-tests.yaml b/.github/workflows/ci-tests.yaml index 9448847..14ab8a9 100644 --- a/.github/workflows/ci-tests.yaml +++ b/.github/workflows/ci-tests.yaml @@ -34,7 +34,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" cache: pip cache-dependency-path: | requirements.txt @@ -50,11 +50,11 @@ jobs: name: "Unit tests" strategy: matrix: - on: [ "ubuntu-22.04"] - python: [ "3.8", "3.9", "3.10", "3.11" ] + on: [ "ubuntu-22.04" ] + python: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] include: - on: "macos-13" - python: "3.11" + python: "3.12" runs-on: ${{ matrix.on }} env: POSTGRES_DB: streamflow diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f80c742..fd15477 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: "Get local version" run: echo "PLUGIN_VERSION=$(cat streamflow_postgresql/version.py | grep -oP '(?<=VERSION = \")(.*)(?=\")')" >> $GITHUB_ENV - name: "Get PyPI version" diff --git a/tox.ini b/tox.ini index ef34379..38c8649 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,7 @@ envlist = bandit lint - py3.{8,9,10,11}-unit + py3.{8,9,10,11,12}-unit skip_missing_interpreters = True [pytest] @@ -12,19 +12,19 @@ testpaths = tests [testenv] allowlist_externals = make commands_pre = - py3.{8,9,10,11}-unit: python -m pip install -U pip setuptools wheel + py3.{8,9,10,11,12}-unit: python -m pip install -U pip setuptools wheel commands = - py3.{8,9,10,11}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs} + py3.{8,9,10,11,12}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs} deps = - py3.{8,9,10,11}-unit: -rrequirements.txt - py3.{8,9,10,11}-unit: -rtest-requirements.txt + py3.{8,9,10,11,12}-unit: -rrequirements.txt + py3.{8,9,10,11,12}-unit: -rtest-requirements.txt description = - py3.{8,9,10,11}-unit: Run the unit tests + py3.{8,9,10,11,12}-unit: Run the unit tests passenv = CI GITHUB_* setenv = - py3.{8,9,10,11}-unit: LC_ALL = C.UTF-8 + py3.{8,9,10,11,12}-unit: LC_ALL = C.UTF-8 [testenv:bandit] commands = bandit -r streamflow_postgresql