Skip to content

Commit

Permalink
Merge pull request #145 from kajinamit/py312-jobs
Browse files Browse the repository at this point in the history
Add Python 3.12 tests
  • Loading branch information
tobias-urdin authored Oct 14, 2024
2 parents 9b9f8e8 + 30a2d83 commit 6363a9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-gnocchiclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
Expand All @@ -16,11 +16,12 @@ jobs:
- pep8
- py39
- py311
- py312
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: ./tools/install_deps.sh
- name: Run tox
run: tox -e ${{ matrix.env }}
run: /tmp/gnocchi-tox-env/bin/tox -e ${{ matrix.env }}
7 changes: 5 additions & 2 deletions tools/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ sudo apt-get update -y && sudo apt-get install -qy \
python3.9-dev \
python3.9-distutils \
python3.11 \
python3.11-dev
python3.11-dev \
python3.12 \
python3.12-dev

sudo rm -rf /var/lib/apt/lists/*

export LANG=en_US.UTF-8
sudo update-locale
sudo locale-gen $LANG

sudo python3 -m pip install -U pip tox virtualenv
sudo python3 -m venv /tmp/gnocchi-tox-env
sudo /tmp/gnocchi-tox-env/bin/python3 -m pip install -U pip tox virtualenv

0 comments on commit 6363a9f

Please sign in to comment.