Skip to content

Commit

Permalink
actions: update to Ubuntu version to Jammy 22.04
Browse files Browse the repository at this point in the history
actions: update subaction versions
actions: use newer python versions for tests
  • Loading branch information
sdimitro committed Dec 29, 2024
1 parent 1271dc2 commit f4d98d2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/install-drgn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# build/install of "drgn" will fail below.
#
sudo apt update
sudo apt install bison flex libelf-dev libdw-dev libomp5 libomp-dev
sudo apt install autoconf automake check gcc git liblzma-dev libelf-dev libdw-dev libtool make pkgconf python3 python3-dev python3-pip python3-setuptools zlib1g-dev bison flex

git clone https://github.com/osandov/drgn.git

Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/install-libkdumpfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
#
sudo apt update
sudo apt install autoconf automake liblzo2-dev libsnappy1v5 libtool pkg-config zlib1g-dev binutils-dev
sudo apt install python3.8-dev python3.9-dev
sudo apt install python3.10-dev python3.11-dev

git clone https://github.com/ptesarik/libkdumpfile.git

cd libkdumpfile
autoreconf -fi
./configure --with-python=$(which python3)
./configure --with-python=$(which python3) --disable-kdumpid
make
sudo make install
cd -
Expand Down
41 changes: 21 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
# Verify the build and installation of SDB.
#
install:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: [3.8, 3.9, "3.10", 3.11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: python3 setup.py install
Expand All @@ -31,12 +31,12 @@ jobs:
# the "drgn" from source (there's no package currently available).
#
pylint:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.10'
- run: ./.github/scripts/install-drgn.sh
- run: python3 -m pip install pylint pytest
- run: pylint -d duplicate-code -d invalid-name sdb
Expand All @@ -52,15 +52,15 @@ jobs:
# can open kdump-compressed crash dumps for the integration tests.
#
pytest:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: ["3.10", 3.11]
env:
AWS_DEFAULT_REGION: 'us-west-2'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: python3 -m pip install aws python-config pytest pytest-cov
Expand All @@ -70,19 +70,19 @@ jobs:
- run: ./.github/scripts/extract-dump.sh dump.201912060006.tar.lzma
- run: ./.github/scripts/extract-dump.sh dump.202303131823.tar.gz
- run: pytest -v --cov sdb --cov-report xml tests
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
#
# Verify "yapf" runs successfully.
#
yapf:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.10'
- run: python3 -m pip install yapf
- run: yapf --diff --style google --recursive sdb
- run: yapf --diff --style google --recursive tests
Expand All @@ -101,11 +101,12 @@ jobs:
# [2] We supply --ignore-missing-imports to the tests package because
# pytest doesn't provide stubs on typeshed.
#
# Note: Staying with 3.8 because mypy is old
mypy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- run: ./.github/scripts/install-drgn.sh
Expand Down

0 comments on commit f4d98d2

Please sign in to comment.