Skip to content

Commit

Permalink
Support python 3.10 and 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Jan 2, 2023
1 parent bd9be35 commit a956b1e
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
python_version:
description: The Python version.
required: false
default: '3.11.1'
default: '3.11'
poetry_version:
description: The Poetry version.
required: false
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,54 @@ jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python:
- '3.10'
- '3.11'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
with:
python_version: ${{ matrix.python }}
- name: Test
run: make test
lint:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python:
- '3.10'
- '3.11'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
with:
python_version: ${{ matrix.python }}
- name: Lint
run: make lint
build:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python:
- '3.10'
- '3.11'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
with:
python_version: ${{ matrix.python }}
- name: Build
run: make build
48 changes: 44 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage = "https://github.com/makenew/pypackage"
repository = "https://github.com/makenew/pypackage"

[tool.poetry.dependencies]
python = "^3.11.0"
python = "^3.10.0"

[tool.poetry.dev-dependencies]
black = "^22.3.0"
Expand Down

0 comments on commit a956b1e

Please sign in to comment.