Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ jobs:
with:
python-version: ${{ matrix.python }}
cache: pip
- name: without optional dependencies and without pyyaml
- name: Test without optional dependencies and without pyyaml
run: |
pip install .[coverage]
pip uninstall -y pyyaml types-PyYAML
pytest --cov --cov-report=term --cov-report=xml --junit-xml=junit.xml
mv coverage.xml coverage_py${{ matrix.python }}_bare.xml
mv junit.xml junit_py${{ matrix.python }}_bare.xml
- name: with all optional dependencies
- name: Test with all optional dependencies
run: |
pip install .[test,all]
pytest --cov --cov-report=term --cov-report=xml --junit-xml=junit.xml
mv coverage.xml coverage_py${{ matrix.python }}_all.xml
mv junit.xml junit_py${{ matrix.python }}_all.xml
- name: without future annotations
- name: Test without future annotations
run: |
sed -i '/^from __future__ import annotations$/d' jsonargparse_tests/test_*.py
pytest --cov --cov-report=term --cov-report=xml --junit-xml=junit.xml
Expand Down Expand Up @@ -157,10 +157,11 @@ jobs:
with:
name: package
path: dist
- name: Test without optional dependencies
- name: Test without optional dependencies and without pyyaml
run: |
cd dist
pip install $(ls *.whl)[test-no-urls]
pip uninstall -y pyyaml
python -m jsonargparse_tests
- name: Test with all optional dependencies
run: |
Expand Down
1 change: 0 additions & 1 deletion jsonargparse/_stubs_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def ast_annassign_to_assign(node: ast.AnnAssign) -> ast.Assign:
return ast.Assign(
targets=[node.target],
value=node.value, # type: ignore[arg-type]
type_ignores=[], # type: ignore[call-arg]
lineno=node.lineno,
end_lineno=node.lineno,
)
Expand Down