Skip to content

Commit

Permalink
Update CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brunato committed Oct 30, 2024
1 parent ecba9ed commit 2a742db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-xmlschema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9, "3.10", 3.11, 3.12, "3.13.0-rc.1", "pypy-3.10"]
python-version: [3.8, 3.9, "3.10", 3.11, 3.12, "3.13.0", "3.14.0-alpha.1", "pypy-3.10"]
exclude:
- os: macos-latest
python-version: 3.8
Expand All @@ -36,7 +36,7 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools
- name: Install optional dependencies
if: ${{ matrix.python-version != '3.13.0-rc.1' }}
if: ${{ matrix.python-version != '3.14.0-alpha.1' }}
run: pip install lxml jinja2
- name: Test with unittest
run: |
Expand All @@ -48,5 +48,5 @@ jobs:
flake8 xmlschema --max-line-length=100 --statistics
- name: Lint with mypy
run: |
pip install mypy==1.11.2 elementpath==4.4.0 lxml-stubs
pip install mypy==1.13.0 elementpath==4.5.0 lxml-stubs
mypy --show-error-codes --strict xmlschema
31 changes: 11 additions & 20 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tox]
min_version = 4.0
envlist = flake8, py{38,39,310,311,312,313,py3}, ep{44,45}, docs,
mypy-py{38,39,310,311,312,py3}, coverage, pytest
envlist = flake8, py{38,39,310,311,312,313,314,py3}, ep{44,45,46}, docs,
mypy-py{38,39,310,311,312,313,py3}, coverage, pytest
skip_missing_interpreters = true
work_dir = {tox_root}/../.tox/xmlschema

[testenv]
deps =
elementpath>=4.4.0, <5.0.0
elementpath>=4.5.0, <5.0.0
lxml
jinja2
py312: memory_profiler
Expand All @@ -17,22 +17,13 @@ deps =
commands =
python -m unittest

[testenv:py313]
deps =
elementpath>=4.4.0, <5.0.0
jinja2

[testenv:ep44]
deps =
lxml
jinja2
elementpath~=4.4

[testenv:ep45]
[testenv:ep{44,45,46}]
deps =
lxml
jinja2
elementpath~=4.5
ep44: elementpath~=4.4
ep45: elementpath~=4.5
ep46: elementpath~=4.6

[testenv:docs]
commands =
Expand All @@ -55,8 +46,8 @@ commands =

[testenv:mypy-py{38,39,310,311,312,py3}]
deps =
mypy==1.11.2
elementpath==4.4.0
mypy==1.13.0
elementpath==4.5.0
lxml-stubs
jinja2
commands =
Expand All @@ -73,10 +64,10 @@ commands =
deps =
pytest
pytest-randomly
elementpath>=4.4.0, <5.0.0
elementpath>=4.5.0, <5.0.0
lxml
jinja2
mypy==1.11.2
mypy==1.13.0
lxml-stubs
commands =
pytest tests -ra
Expand Down

0 comments on commit 2a742db

Please sign in to comment.