Skip to content

Commit

Permalink
👷 Add support for python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
hmiladhia committed Feb 5, 2025
1 parent 95e1a5f commit fb9040e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 19 deletions.
46 changes: 28 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,41 @@
name: Upload Python Package to PYPI
name: 🚀 Upload Python Package to PYPI

on:
release:
types: [published]

workflow_dispatch:


jobs:
test:
name: Running Tests
uses: ./.github/workflows/tests.yml
quality:
name: 🚧 Quality Gates
uses: ./.github/workflows/quality.yaml

publish:
needs: [test]
name: 🚀 Upload Python Package to PYPI
runs-on: ubuntu-latest
needs: [quality]
environment:
name: pypi

permissions:
id-token: write

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: 🔍 Checkout
uses: actions/checkout@v4

- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build and publish
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m build -w
twine upload -u __token__ dist/*

- name: 📦 Install dependencies
run: python -m pip install --upgrade pip build

- name: 🔨 Build package
run: python -m build

- name: 🚀 Publish package
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ python = """
3.10: py310
3.11: py311
3.12: py312
3.13: py313
"""

[tool.tox.env_run_base]
Expand Down

0 comments on commit fb9040e

Please sign in to comment.