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
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pre-commit Hooks
name: Pre-commit hooks

on:
- push
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run pytest

on:
- pull_request
- push

jobs:
pytest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- name: Install dependencies
run: pip install '.[dev]'

- name: Run pytest
run: pytest --cov=parity_tensor --cov-branch --cov-report=xml

- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ env
__pycache__
parity_tensor/_version.py
build
.coverage
coverage.xml
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ column_limit = 200

[tool.pylint]
max-line-length = 200
ignore-paths = ["parity_tensor/_version.py"]
ignore-paths = [
"parity_tensor/_version.py",
"tests/*",
]

[tool.mypy]
disallow_untyped_calls = true
Expand Down
2 changes: 2 additions & 0 deletions tests/import_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_import() -> None:
import parity_tensor