Skip to content

Commit

Permalink
AT-10765 - add support for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
kkozik-amplify committed Feb 23, 2024
1 parent e3f1192 commit fd8a870
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -47,4 +47,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.7.0"
dependencies = ["lark>=1,<2"]
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-r requirements.txt
# Linting tools
pylint
pycodestyle
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist={py37}-unit,{py38}-unit,{py39}-unit,{py310}-unit,{py311}-unit
envlist={py37}-unit,{py38}-unit,{py39}-unit,{py310}-unit,{py311}-unit,{py312}-unit
skipsdist=true

[gh-actions]
Expand All @@ -9,10 +9,11 @@ python =
3.9: py39-unit
3.10: py310-unit
3.11: py311-unit
3.12: py312-unit

[testenv]
commands =
pip install --upgrade -r requirements.txt -r test-requirements.txt .
pip install --upgrade -r test-requirements.txt .
nose2 --config tox.ini --verbose
coverage xml -o reports/coverage.xml --omit=hcl2/lark_parser.py

Expand All @@ -22,7 +23,7 @@ whitelist_externals=rm
passenv = TERRAFORM_CONFIG
basepython=python3.7
commands =
pip install --upgrade -r requirements.txt -r test-requirements.txt -e .
pip install --upgrade -r test-requirements.txt -e .
rm -f hcl2/lark_parser.py
python bin/terraform_test {posargs}

Expand Down

0 comments on commit fd8a870

Please sign in to comment.