Skip to content

Commit

Permalink
fixup! feat: add Python 3.11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrendalath committed Apr 17, 2024
1 parent d6cb711 commit 7795ccb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04]
python-version: [3.8]
toxenv: [py38-django42, py311-django42, py312-django42 quality, translations]

steps:
Expand All @@ -28,10 +27,21 @@ jobs:
with:
submodules: recursive

- name: Extract the Python version from tox environment
id: extract-python
run: |
if [[ "${{ matrix.toxenv }}" =~ py[0-9]+ ]]; then
PYTHON_VERSION=$(echo "${{ matrix.toxenv }}" | grep -o 'py[0-9]\+' | sed 's/py/3./')
else
# Default version
PYTHON_VERSION=3.8
fi
- name: setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ env.PYTHON_VERSION }}

- name: Install translations dependencies
if: ${{ startsWith(matrix.toxenv, 'translations') }}
Expand Down

0 comments on commit 7795ccb

Please sign in to comment.