Skip to content

Commit

Permalink
Add support for python 3.12 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Nov 25, 2023
1 parent c228137 commit 2c0d042
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
14 changes: 8 additions & 6 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@ changelog:
exclude:
labels:
- ignore for release
- ci
categories:
- title: New features
- title: New features
labels:
- enhancement
- title: Bug fixes
- title: 🐛 Bug fixes
labels:
- bug
- title: Documentation
- title: 📝 Documentation
labels:
- documentation
- title: Dependencies
- title: ⬆️ Dependencies
labels:
- dependencies
- title: Other changes
- title: 🚀 CI
labels:
- ci
- title: 🤷🏻 Other changes
labels:
- '*'
17 changes: 7 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash -el {0}

jobs:
linux-unittests:
name: Unit tests Linux - ${{ matrix.PYTHON_VERSION }} ${{ matrix.POLARS_VERSION }}
tests:
name: ${{ matrix.PYTHON_VERSION }} ${{ matrix.POLARS_VERSION }}
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
Expand All @@ -29,6 +25,7 @@ jobs:
- { PYTHON_VERSION: 'python=3.9', POLARS_VERSION: 'polars=0.19' }
- { PYTHON_VERSION: 'python=3.10', POLARS_VERSION: '' }
- { PYTHON_VERSION: 'python=3.11', POLARS_VERSION: '' }
- { PYTHON_VERSION: 'python=3.12', POLARS_VERSION: '' }
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.4.1
Expand All @@ -42,10 +39,10 @@ jobs:
pixi install
pixi run postinstall
- name: Run unittests
uses: pavelzw/pytest-action@v2
uses: pavelzw/pytest-action@342008861c5f93d3689ebf656acb26170b3ff161
with:
custom-pytest: pixi run pytest
report-title: Unit tests Linux - ${{ matrix.PYTHON_VERSION }} ${{ matrix.POLARS_VERSION }}
report-title: ${{ matrix.PYTHON_VERSION }} ${{ matrix.POLARS_VERSION }}

pre-commit-checks:
# TODO: switch to pixi once there is a good way
Expand All @@ -59,10 +56,10 @@ jobs:
uses: actions/checkout@v4
- name: Set up micromamba
uses: mamba-org/setup-micromamba@db1df3ba9e07ea86f759e98b575c002747e9e757
- name: Install Python 3.11
- name: Install Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- name: Run pre-commit checks
uses: pre-commit/action@v3.0.0

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"polars >=0.14.24,<0.20",
Expand Down

0 comments on commit 2c0d042

Please sign in to comment.