Skip to content

Commit

Permalink
Upgrade python version to 3.11 and actions version (#291)
Browse files Browse the repository at this point in the history
* Upgrade python version to 3.11 and actions version

* Update tox python version

* auto patch increment

* Re-add pipenv check.  Default flake8 value

Co-authored-by: ras-rm-pr-bot <[email protected]>
  • Loading branch information
insacuri and ras-rm-pr-bot authored Nov 14, 2022
1 parent 46c7187 commit 58cf731
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 98 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
name: Build & Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: '0'
token: ${{ secrets.BOT_TOKEN }}
- name: Set up Python 3.10
uses: actions/setup-python@v2
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Get Dependencies
run: |
pip install pipenv
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim
FROM python:3.11-slim

RUN apt-get update && apt-get install -y build-essential curl gunicorn
RUN pip install pipenv
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-kubernetes:
docker build -f _infra/docker/Dockerfile .

lint:
#pipenv check ./application ./tests
pipenv check ./application ./tests -i 51457 -i 51499
pipenv run isort .
pipenv run black --line-length 120 .
pipenv run flake8 ./application ./tests
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ verify_ssl = true
url = "https://pypi.python.org/simple"

[requires]
python_version = "3.10"
python_version = "3.11"

[packages]
flask = "*"
Expand Down
162 changes: 75 additions & 87 deletions Pipfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions _infra/helm/collection-instrument/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 3.0.4
version: 3.0.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 3.0.4
appVersion: 3.0.5
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py310
envlist = py311

[testenv]
passenv=HOME
Expand All @@ -20,4 +20,3 @@ commands=

[flake8]
max-line-length = 120
max-complexity = 14

0 comments on commit 58cf731

Please sign in to comment.