Skip to content

Commit

Permalink
chore: Add python 3.11 support (#399)
Browse files Browse the repository at this point in the history
* chore: Add python 3.11 support
  • Loading branch information
salman2013 authored Apr 2, 2024
1 parent 4d7388d commit 3d2b2e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
python-version: ['py38', 'py312']
python-version: ['py38', 'py311', 'py312']
django-version: ['django42']
db-version: ['mysql80']

Expand All @@ -27,7 +27,12 @@ jobs:
run: |
docker exec -e TOXENV=${{ matrix.python-version }}-${{ matrix.django-version }} --env DB_HOST=${{ matrix.db-version }} -u root edx_notes_api \
/bin/bash -c "apt-get update && apt-get install python3-dev default-libmysqlclient-dev build-essential pkg-config"
- name: setup python
- name: setup python 311
if: ${{ matrix.python-version == 'py311' }}
run: |
docker exec -e TOXENV=${{ matrix.python-version }}-${{ matrix.django-version }} --env DB_HOST=${{ matrix.db-version }} -u root edx_notes_api \
/bin/bash -c "add-apt-repository ppa:deadsnakes/ppa -y && apt install python3.11 python3.11-dev python3.11-distutils -y"
- name: setup python 312
if: ${{ matrix.python-version == 'py312' }}
run: |
docker exec -e TOXENV=${{ matrix.python-version }}-${{ matrix.django-version }} --env DB_HOST=${{ matrix.db-version }} -u root edx_notes_api \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/migrations-mysql8-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
python-version: [ '3.8', '3.12' ]
python-version: [ '3.8', '3.11', '3.12' ]

steps:
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{38,312}-django{42}
envlist = py{38,311,312}-django{42}
skipsdist = true

[testenv]
Expand Down

0 comments on commit 3d2b2e0

Please sign in to comment.