Skip to content

Commit

Permalink
update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
knaaptime committed Jan 19, 2024
1 parent 50ae412 commit a3e5577
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,28 @@ jobs:

- name: Test geosnap
run: |
coverage run -m pytest -v --color yes --cov=geosnap --cov-append --cov-report term-missing --cov-report xml .
pytest geosnap \
-v \
-r a \
-n auto \
--color yes \
--cov geosnap \
--cov-append \
--cov-report term-missing \
--cov-report xml
- name: codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
name: geosnap-codecov
name: spopt-codecov

- name: Generate and publish the report
if: |
failure()
&& steps.status.outcome == 'failure'
&& github.event_name == 'schedule'
&& github.repository_owner == 'oturns'
&& github.repository_owner == 'pysal'
uses: xarray-contrib/issue-from-pytest-log@v1
with:
log-path: pytest-log.jsonl
log-path: pytest-log.jsonl
2 changes: 1 addition & 1 deletion geosnap/analyze/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from . import segdyn
from .dynamics import (
draw_sequence_from_gdf,
predict_markov_labels,
sequence,
transition,
draw_sequence_from_gdf,
)
from .geodemo import ModelResults, cluster, find_k, find_region_k, regionalize
from .incs import linc, lincs_from_gdf
Expand Down

0 comments on commit a3e5577

Please sign in to comment.