Update Python versions

This commit is contained in:
Arkadii Yakovets 2024-10-24 17:38:40 -07:00
parent 7b1fe262ce
commit 4a3dd98536
No known key found for this signature in database
GPG Key ID: 7350E7F17DFE6846
2 changed files with 26 additions and 7 deletions

View File

@ -28,7 +28,8 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.13'
- name: Run pre-commit - name: Run pre-commit
uses: pre-commit/action@v3.0.1 uses: pre-commit/action@v3.0.1
@ -64,7 +65,19 @@ jobs:
name: Run tests name: Run tests
needs: needs:
- pre-commit - pre-commit
runs-on: ubuntu-latest runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -72,7 +85,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: ${{ matrix.python-version }}
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -95,7 +108,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.13'
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -114,13 +127,19 @@ jobs:
test-build-package: test-build-package:
name: Test build on ${{ matrix.os }} name: Test build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: build-package needs: build-package
runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: os:
- macos-latest - macos-latest
- ubuntu-latest - ubuntu-latest
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -128,7 +147,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: ${{ matrix.python-version }}
- name: Get package artifacts - name: Get package artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4

View File

@ -45,7 +45,7 @@ release_name = "QUIN"
nettacker = "nettacker.main:run" nettacker = "nettacker.main:run"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.9, <3.13" python = "^3.9, <=3.13"
aiohttp = "^3.9.5" aiohttp = "^3.9.5"
argparse = "^1.4.0" argparse = "^1.4.0"
asyncio = "^3.4.3" asyncio = "^3.4.3"