-
Notifications
You must be signed in to change notification settings - Fork 0
Coerce SPE to SFE #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9407ce5
Change proxy typehint to the classname
jkanche a54d201
coerce an spe to sfe object
jkanche 65fe436
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 99fc989
some todos for later
jkanche 2c14b50
Merge branch 'coercions' of https://github.com/BiocPy/SpatialFeatureE…
jkanche c4e967c
rewriting sfe image classes
jkanche 22c7ff1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a7c01ff
packaging updates
jkanche 04746a6
Merge branch 'coercions' of https://github.com/BiocPy/SpatialFeatureE…
jkanche eb3015d
install xslt and xml
jkanche a1d8236
fix typo
jkanche e496f2b
remove 3.13
jkanche e24c7cc
minor changes
jkanche fb14cfb
update changelog
jkanche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,77 @@ | ||
name: Run tests | ||
name: Test the library | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
branches: | ||
- master # for legacy repos | ||
- main | ||
pull_request: | ||
branches: [master] | ||
branches: | ||
- master # for legacy repos | ||
- main | ||
workflow_dispatch: # Allow manually triggering the workflow | ||
schedule: | ||
# Run roughly every 15 days at 00:00 UTC | ||
# (useful to check if updates on dependencies break the package) | ||
- cron: "0 0 1,16 * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: >- | ||
${{ github.workflow }}-${{ github.ref_type }}- | ||
${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
test: | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
name: Python ${{ matrix.python-version }} | ||
python: ["3.9", "3.10", "3.11", "3.12"] # , "3.13" | ||
platform: | ||
- ubuntu-latest | ||
# - macos-latest | ||
# - windows-latest | ||
runs-on: ${{ matrix.platform }} | ||
name: Python ${{ matrix.python }}, ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- uses: actions/setup-python@v5 | ||
id: setup-python | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install system dependencies | ||
run: | | ||
sudo apt-get install libxml2-dev libxslt-dev | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
pip install tox coverage | ||
|
||
- name: Test with tox | ||
run: | | ||
- name: Run tests | ||
run: >- | ||
pipx run --python '${{ steps.setup-python.outputs.python-path }}' | ||
tox | ||
-- -rFEx --durations 10 --color yes --cov --cov-branch --cov-report=xml # pytest args | ||
|
||
- name: Check for codecov token availability | ||
id: codecov-check | ||
shell: bash | ||
run: | | ||
if [ ${{ secrets.CODECOV_TOKEN }} != '' ]; then | ||
echo "codecov=true" >> $GITHUB_OUTPUT; | ||
else | ||
echo "codecov=false" >> $GITHUB_OUTPUT; | ||
fi | ||
|
||
- name: Upload coverage reports to Codecov with GitHub Action | ||
uses: codecov/codecov-action@v5 | ||
if: ${{ steps.codecov-check.outputs.codecov == 'true' }} | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
slug: ${{ github.repository }} | ||
flags: ${{ matrix.platform }} - py${{ matrix.python }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium