Skip to content

Commit

Permalink
ci: fix ubuntu version to 22.04 (#399)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dvarasani-crest authored Oct 30, 2024
1 parent dcf2266 commit 148955b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: apache/skywalking-eyes@v0.6.0

pre-commit:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -66,7 +66,7 @@ jobs:

run-unit-tests:
name: test-unit ${{ matrix.python-version }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
continue-on-error: true
strategy:
matrix:
Expand All @@ -89,7 +89,7 @@ jobs:
poetry run pytest tests/unit
test-splunk:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
continue-on-error: true
needs:
- meta
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
- semgrep
- run-unit-tests
- test-splunk
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: 3.12
- run: curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
- run: |
poetry install
Expand Down

0 comments on commit 148955b

Please sign in to comment.