Skip to content

Commit

Permalink
Merge pull request #253 from lyz-code/fix/pdm
Browse files Browse the repository at this point in the history
feat: support Python 3.11
  • Loading branch information
lyz-code committed Nov 23, 2023
2 parents 485d430 + 435ffea commit a572848
Show file tree
Hide file tree
Showing 5 changed files with 757 additions and 912 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
Install:
runs-on: ubuntu-latest
strategy:
max-parallel: 3
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9, '3.10']
python-version: [3.8, 3.9, '3.10', '3.11']
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9, '3.10']
python-version: [3.8, 3.9, '3.10', '3.11']
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -31,20 +31,12 @@ jobs:
source .venv/bin/activate
pdm config python.use_venv True
make install
# 3.7 is giving me some issues with flake8 and importlib-metadata, until
# https://github.com/flakeheaven/flakeheaven/issues/132 is done, I won't spend
# time testing in this environment.
# https://github.com/lyz-code/mkdocs-newsletter/actions/runs/3548202587/jobs/5959150030
- name: Test linters
run: if [[ ${{ matrix.python-version }} != '3.7' ]];then make lint; fi
run: make lint
- name: Test type checkers
run: make mypy
# 3.7 is giving me some issues with flake8 and importlib-metadata, until
# https://github.com/flakeheaven/flakeheaven/issues/132 is done, I won't spend
# time testing in this environment.
# https://github.com/lyz-code/mkdocs-newsletter/actions/runs/3548202587/jobs/5959150030
- name: Test security
run: if [[ ${{ matrix.python-version }} != '3.7' ]];then make security; fi
run: make security
- name: Test with pytest
run: make test
- name: Upload Coverage
Expand Down
5 changes: 3 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ plugins:
rendering:
show_root_heading: true
heading_level: 1
watch:
- src
- autolinks
- git-revision-date-localized:
type: timeago
Expand All @@ -26,6 +24,9 @@ plugins:
minify_html: true
- section-index

watch:
- src

markdown_extensions:
- abbr
- def_list
Expand Down

0 comments on commit a572848

Please sign in to comment.