Skip to content

Commit

Permalink
CI: setup ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsokol committed Jan 25, 2024
1 parent 5a53b62 commit 89accb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
allow-softlinks: true
environment-file: ci/environment.yml
python-version: ${{ matrix.python }}
miniforge-variant: Miniforge
miniforge-variant: Mambaforge
use-only-tar-bz2: true
use-mamba: true
- name: Install package
run: |
pip install -e .[tests]
- name: Run tests
run: |
pytest tests -vv
pytest --pyargs finch
- uses: codecov/codecov-action@v3
if: always()
- name: Publish Unit Test Results
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ requires-python = ">=3.8"
dependencies = ["juliapkg>=0.1.10", "juliacall>=0.9.15"]

[project.optional-dependencies]
tests = ["pytest>=3.5", "sparse>=0.15.1"]
tests = [
"pytest>=3.5",
"pytest-cov",
"sparse>=0.15.1",
]

[project.urls]
Source = "https://github.com/willow-ahrens/finch-tensor"
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[pytest]
addopts = --cov-report term-missing --cov-report html --cov-report=xml --cov-report=term --cov sparse --cov-config .coveragerc --junitxml=junit/test-results.xml
addopts = --cov-report term-missing --cov-report html --cov-report=xml --cov-report=term --cov finch --cov-config .coveragerc --junitxml=junit/test-results.xml
filterwarnings =
ignore::PendingDeprecationWarning
testpaths =
Expand Down

0 comments on commit 89accb7

Please sign in to comment.