Skip to content

Commit a08d5c4

Browse files
authored
Specify python version in Github runner (#822)
* add python setup and specific python version in test workflow, unpin poetry version * switch to global pip instead of venv pip * try without cache * update poetry dependency to use python 3.10+
1 parent d392884 commit a08d5c4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.generator/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["Datadog <[email protected]>"]
66
license = "Apache-2.0"
77

88
[tool.poetry.dependencies]
9-
python = "^3.9"
9+
python = "^3.10"
1010
click = "8.0.1"
1111
PyYAML = "6.0"
1212
jsonref = "0.2"

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
fetch-depth: 0
3636
ref: ${{ github.event.pull_request.head.sha }}
3737
token: ${{ steps.get_token.outputs.token }}
38+
- uses: actions/setup-python@v4
39+
with:
40+
python-version: '3.10'
3841
# Fetch a fork of the repo
3942
- uses: actions/checkout@v3
4043
if: github.event.pull_request.head.repo.full_name != github.repository

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
stages: [manual]
2828
pass_filenames: false
2929
additional_dependencies:
30-
- "poetry==1.1.15"
30+
- "poetry"
3131
- id: examples
3232
name: examples
3333
language: python
@@ -36,4 +36,4 @@ repos:
3636
stages: [manual]
3737
pass_filenames: false
3838
additional_dependencies:
39-
- "poetry==1.1.15"
39+
- "poetry"

0 commit comments

Comments
 (0)