Skip to content

Commit 148955b

Browse files
ci: fix ubuntu version to 22.04 (#399)
This PR sets ubuntu version to 22.04 for scripts run with python 3.7. Reference: [ADDON-75861](https://splunk.atlassian.net/browse/ADDON-75861) Python version for pre-commit can not be updated to latest version due to open issue with the docformatter hook. Reference: PyCQA/docformatter#289, PyCQA/docformatter#293
1 parent dcf2266 commit 148955b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/build-test-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- uses: apache/[email protected]
5151

5252
pre-commit:
53-
runs-on: ubuntu-latest
53+
runs-on: ubuntu-22.04
5454
steps:
5555
- uses: actions/checkout@v4
5656
- uses: actions/setup-python@v5
@@ -66,7 +66,7 @@ jobs:
6666

6767
run-unit-tests:
6868
name: test-unit ${{ matrix.python-version }}
69-
runs-on: ubuntu-latest
69+
runs-on: ubuntu-22.04
7070
continue-on-error: true
7171
strategy:
7272
matrix:
@@ -89,7 +89,7 @@ jobs:
8989
poetry run pytest tests/unit
9090
9191
test-splunk:
92-
runs-on: ubuntu-latest
92+
runs-on: ubuntu-22.04
9393
continue-on-error: true
9494
needs:
9595
- meta
@@ -145,7 +145,7 @@ jobs:
145145
- semgrep
146146
- run-unit-tests
147147
- test-splunk
148-
runs-on: ubuntu-latest
148+
runs-on: ubuntu-22.04
149149
steps:
150150
- uses: actions/checkout@v4
151151
with:

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-python@v5
1515
with:
16-
python-version: 3.7
16+
python-version: 3.12
1717
- run: curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
1818
- run: |
1919
poetry install

0 commit comments

Comments
 (0)