Skip to content

Commit

Permalink
Support python 3.12 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mib1185 authored Feb 16, 2024
1 parent 0f554b5 commit 92d2c2e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
37 changes: 33 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/[email protected]

- name: Set up Python 3.9
uses: actions/setup-python@v4.7.0
uses: actions/setup-python@v5.0.0
with:
python-version: "3.9"

Expand All @@ -30,13 +30,42 @@ jobs:
pre-commit run --all-files --show-diff-on-failure
pytest:
runs-on: ubuntu-latest
name: pytest ${{ matrix.python-version }}
runs-on: ubuntu-20.04
needs: pre-commit
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- name: Check out the repository
uses: actions/[email protected]

- name: Set up Python 3.9
uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install -r requirements_dev.txt -e .
- name: Run tests
run: |
pytest tests --cov=aiopegelonline --cov-report=xml
codecov:
name: codecov
runs-on: ubuntu-20.04
needs: pytest

steps:
- name: Check out the repository
uses: actions/[email protected]

- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: "3.9"

Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)

0 comments on commit 92d2c2e

Please sign in to comment.