Skip to content

Commit

Permalink
Update Devcontainer/CI to Python 3.12 (#2226)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Jun 8, 2024
1 parent 37aca2c commit aa5f6dd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
36 changes: 21 additions & 15 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
{
"name": "home-assistant/intents",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10",
"containerEnv": { "DEVCONTAINER": "1" },
"settings": {
"python.languageServer": "Pylance",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
"image": "mcr.microsoft.com/devcontainers/python:3.12",
"containerEnv": {
"DEVCONTAINER": "1"
},
"customizations": {
"vscode": {
"settings": {
"python.languageServer": "Pylance",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true,
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"esbenp.prettier-vscode"
]
}
}
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"esbenp.prettier-vscode"
],
"postCreateCommand": "script/setup",
"remoteUser": "vscode"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
cache: "pip"
- run: script/setup
- run: python3 -m script.intentfest add_language test_add_language_generates_valid_data "CI Added Language"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
cache: "pip"
- name: Install Python dependencies
run: script/setup
Expand Down

0 comments on commit aa5f6dd

Please sign in to comment.