Skip to content

Commit

Permalink
Added Python 3.12 in CI pipeline (#103)
Browse files Browse the repository at this point in the history
This commit adds Python 3.12 support to the Ci/CD pipeline.
  • Loading branch information
GlassOfWhiskey authored May 8, 2024
1 parent cf6ce84 commit f375a02
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 7 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit f375a02

Please sign in to comment.