Skip to content

Commit

Permalink
Test invalid case
Browse files Browse the repository at this point in the history
termoshtt committed Jan 27, 2024

Verified

This commit was signed with the committer’s verified signature.
lobis Luis Antonio Obis Aparicio
1 parent a338eef commit 5cd3463
Showing 3 changed files with 13 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -39,7 +39,11 @@ jobs:
run: pip install -v "./${{ matrix.crate }}[test]"

- name: Python Test
run: pytest ./${{ matrix.crate }}
run: pytest
working-directory: ./${{ matrix.crate }}

- name: Type check
run: pyright ./${{ matrix.crate }}
run: |
pyright
! pyright invalids/
working-directory: ./${{ matrix.crate }}
4 changes: 0 additions & 4 deletions pyo3-stub-gen-testing-mixed/pyproject.toml
Original file line number Diff line number Diff line change
@@ -13,7 +13,3 @@ test = ["pytest", "pyright"]
python-source = "python"
module-name = "pyo3_stub_gen_testing_mixed.my_rust_pkg"
features = ["pyo3/extension-module"]

[tool.pyright]
# This is a test directory to confirm that pyright raises error
exclude = ["invalids"]
7 changes: 7 additions & 0 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"include": [
"pyo3-stub-gen-testing-mixed/python",
"pyo3-stub-gen-testing-mixed/tests",
"pyo3-stub-gen-testing-pure/tests"
]
}

0 comments on commit 5cd3463

Please sign in to comment.