Skip to content

Commit

Permalink
ci: use Python 3.11 (#112)
Browse files Browse the repository at this point in the history
* ci: use Python 3.11

* ci: add workflow_dispatch trigger
  • Loading branch information
César Román authored Jan 11, 2023
1 parent f7d8f4e commit d33d875
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: ci

on:
workflow_dispatch:
pull_request:
push:
branches:
Expand All @@ -15,9 +16,9 @@ jobs:
include:
- python-version: '2.7'
tox-env: install
- python-version: '3.10'
- python-version: '3.11'
tox-env: lint
- python-version: '3.10'
- python-version: '3.11'
tox-env: typecheck
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ persistent=yes

# Minimum Python version to use for version dependent checks. Will default to
# the version used to run pylint.
py-version=3.10
py-version=3.11

# Discover python modules and packages in the file system subtree.
recursive=no
Expand Down
2 changes: 1 addition & 1 deletion .sourcery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rule_settings:
- refactoring
- suggestion
- comment
python_version: '3.10'
python_version: '3.11'

metrics:
quality_threshold: 25.0
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ If you find a bug or if something is missing in the source code, you can help us

## Getting ready to contribute

For **incendium** we rely on Python 2.7.18 for development, and Python 3.10 to run tests and style checks with `pre-commit` and `tox`.
For **incendium** we rely on Python 2.7.18 for development, and Python 3.11 to run tests and style checks with `pre-commit` and `tox`.

### Setting up your local environment

1. Install Python 2.7.18 and the latest 3.10 release
1. Install Python 2.7.18 and the latest 3.11 release
1. Install the required packages for development you may run the following command:

```sh
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ basepython = python2.7

[testenv:lint]
description = run static analysis and style check
basepython = python3.10
basepython = python3.11
skip_install = true
deps =
pre-commit
Expand All @@ -21,7 +21,7 @@ commands =

[testenv:typecheck]
description = run type check on code base
basepython = python3.10
basepython = python3.11
skip_install = true
deps =
ignition-api-stubs
Expand Down

0 comments on commit d33d875

Please sign in to comment.