Skip to content

Commit

Permalink
chore: python 3.13 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Oct 10, 2024
1 parent 5fbd831 commit 8a44dc2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 17 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,51 @@
name: build

on: [push, pull_request]
on:
push:
paths:
- '.github/workflows/build.yml'
- '**/*.py'
branches:
- '**'
tags:
- '!**'
pull_request:
paths:
- '.github/workflows/build.yml'
- '**/*.py'
workflow_dispatch: ~

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- run: just install lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pythonversion }}
- run: just install coverage
coverage:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- run: just install coverage
- uses: coverallsapp/github-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ isort-check:

# Run mypy type checking on the project
mypy:
{{VIRTUAL_BIN}}/mypy {{PROJECT_NAME}}/ {{TEST_DIR}}/
{{VIRTUAL_BIN}}/mypy --install-types --non-interactive {{PROJECT_NAME}}/ {{TEST_DIR}}/

# Test the project
test:
Expand Down
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@

DEV_REQUIREMENTS = [
'bandit == 1.7.*',
'black == 23.*',
'build == 0.10.*',
'flake8 == 6.*',
'black == 24.*',
'flake8 == 7.*',
'isort == 5.*',
'mypy == 1.3.*',
'pytest == 7.*',
'mypy == 1.11.*',
'pytest == 8.*',
'pytest-cov == 4.*',
'twine == 4.*',
]

setuptools.setup(
Expand Down

0 comments on commit 8a44dc2

Please sign in to comment.